thanks for getting 'this dot' stuck in my head, it's never gonna leave now 😂 jokes aside thanks for the great videos, as someone very new to p5.js i absolutely love the way you explain things and its helped me massively!
The song.play() and song.pause() if called frequently by clicking that toggle button several time in Mozilla Firefox, actually just resets the song, and it starts from the beginning, i spent 4 freaking hours thinking this was some problem with my p5 library that i was using, then realised switching to chrome fixed the problem, dammit mozilla, i used to love you.
although I am able to transfer some of the knowledge from this series of videos, I don't yet use p5.js. do you have a video or plan to make a video for this same application in Processing?
This is epic! Do you think it's possible to trigger other sounds, based on their input frequency? I.e if a person said hello, we can trigger a sound wave response saying hi back, using this same framework?? I have a project in mind but just want to be sure!!
Hey Daniel, with p5, its pretty convenient to plot the amplitude within the range of 0 and 1. But in most of the systems, the amplitude is take from -1 to 1. Is that possible to do in p5? If not in p5, is there any other library in JavaScript which allows for such amplitude visualization?
Just change the range of the amplitude: let vol = map(amp.getLevel(), 0, 1, -50, 50); let y = height / 2 + vol; So you can make sure that the graph is in the middle, good luck.
I must be doing something wrong! the loading takes for ever(as far as I know literally.) The sound files should be in the same directory as index.html, and sketch? right?
It couldn't load the file mp3: “There was no response from the server at 1.mp3. Check the url and internet connectivity. The error stack trace includes: loadSound ” ……
Hello Daniel, I'm trying to follow along (I've tried to mess with the sound before but still had the same error). My console says that "the request status was 0 ()" and pointing to p5.sound:944. I have no idea how to fix it, I've even asked on github but no response so far EDIT: I FOUND THE PROBLEM: I use brackets and it has its own chrome browser; turns out that doesn't really work with chrome
Any idea on what I need to use to capture if the sound is coming from one side or the other of the microphone? Example: microphone in the middle of a tennis table. I want to be able to recognise if the sound of the ball hitting the table came from the left or right side of the table.
Maybe use 2 microphones? then take the difference of the two volume levels (which will be nearly the same), and whichever mic has the higher value (right mic or left mic), that mic is on the side the ball was hit at.
I'm trying to follow along in the tutorial, but when I try to play the song I get an error of: "Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https" even though the mp3 is in my filesystem. Anyone have an idea of what to do?
var music; function preload(){ music = loadSound('data/Back Against The Wall.mp3'); } function setup() { createCanvas(200,200); music.play(); } function draw() { background(0); } loading on local server why ?
You can run a local server, by using "cd (path to file you want to run goes here)" and then running the command "python -m SimpleHTTPServer" in terminal on mac, and then go to localhost:8000
Whoa! you've got some sweet moves right there
I swear, I google how to do something and BOOM coding train has me covered
Dancing as well...oh hell no. This has gone to a whole new level. Well done Mr. Shiffman; excellent.
I tthink,you're not only a tutor here but also a awesome dancer.
One of the hardest videos to listen to, but also one of the funniest to watch
thanks for getting 'this dot' stuck in my head, it's never gonna leave now 😂 jokes aside thanks for the great videos, as someone very new to p5.js i absolutely love the way you explain things and its helped me massively!
The song.play() and song.pause() if called frequently by clicking that toggle button several time in Mozilla Firefox, actually just resets the song, and it starts from the beginning, i spent 4 freaking hours thinking this was some problem with my p5 library that i was using, then realised switching to chrome fixed the problem, dammit mozilla, i used to love you.
Came for tutorial, stayed here for 4:09
Same
You have a great style, thank you for your videos! Keep on the good work
Sick moves
Your charisma is wonderful. I'm in love haha
This guy is cool tho.
Keep up the good work.
Love the dance ! :)
Now i am dancing too, damn it @Daniel Shiffman
although I am able to transfer some of the knowledge from this series of videos, I don't yet use p5.js. do you have a video or plan to make a video for this same application in Processing?
This is epic! Do you think it's possible to trigger other sounds, based on their input frequency? I.e if a person said hello, we can trigger a sound wave response saying hi back, using this same framework?? I have a project in mind but just want to be sure!!
thank
you
Thanks Man
Good video but i still have a question is it possible to see the amplitude of any audio input without loading the mp3 file in the script?
Hey were you able to do it?
Hey Daniel, with p5, its pretty convenient to plot the amplitude within the range of 0 and 1. But in most of the systems, the amplitude is take from -1 to 1. Is that possible to do in p5? If not in p5, is there any other library in JavaScript which allows for such amplitude visualization?
Just change the range of the amplitude:
let vol = map(amp.getLevel(), 0, 1, -50, 50);
let y = height / 2 + vol;
So you can make sure that the graph is in the middle, good luck.
I want to have Processing tutorial of this video. This video will be much more useful to me...
you flow with the beat
Love this hahaha
that song make me noise(ty)
up
to be continue #coding16 #codingRainbow_the_best
Wow!!!! it is very cool!!!!
I must be doing something wrong! the loading takes for ever(as far as I know literally.) The sound files should be in the same directory as index.html, and sketch? right?
Nice!
you're a fucking genious!!! even dancing jauajauajauj 🤣😂🤣😂🤣
Who made the this dot song? Where can I find it? Thanks!
It couldn't load the file mp3: “There was no response from the server at 1.mp3. Check the url and internet connectivity.
The error stack trace includes:
loadSound ” ……
Hello Daniel, I'm trying to follow along (I've tried to mess with the sound before but still had the same error).
My console says that "the request status was 0 ()" and pointing to p5.sound:944. I have no idea how to fix it, I've even asked on github but no response so far
EDIT: I FOUND THE PROBLEM: I use brackets and it has its own chrome browser; turns out that doesn't really work with chrome
where we can download the song..
so that i can make it as ringtone..😜😜
How would you set correct syntax for audioIN rather than mp3 file?
Any idea on what I need to use to capture if the sound is coming from one side or the other of the microphone? Example: microphone in the middle of a tennis table. I want to be able to recognise if the sound of the ball hitting the table came from the left or right side of the table.
Maybe use 2 microphones? then take the difference of the two volume levels (which will be nearly the same), and whichever mic has the higher value (right mic or left mic), that mic is on the side the ball was hit at.
How could i do all the stuff you're doing with sound using vanilla Javascript?
I think you just have to write the code that they've already written for the p5.sound.js library. I'm curious why you want to do this.
mp3 isn't working on my program I have done.why is this happen and what is the solution?
please,explain.
I'd love to warp/distort text on Processing, reacting to a mp3 file. Suggests? thanks *
create amp after soundFile, works wonder
I'm trying to follow along in the tutorial, but when I try to play the song I get an error of: "Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https" even though the mp3 is in my filesystem. Anyone have an idea of what to do?
Are you running a local server? It won't work without one. These workflow videos might help! ruclips.net/p/PLRqwX-V7Uu6Zu_uqEA6NqhLzKLACwU74X
can't get how to create the same kind of wave from mic input
Hey were you able to do it?
i really dig that ellipse moving with the sound where can i get the code for that!!! cool
ack, I forgot to upload the code. I will do so tomorrow, reply back and remind me if it's not there within 24 hours.
var music;
function preload(){
music = loadSound('data/Back Against The Wall.mp3');
}
function setup() {
createCanvas(200,200);
music.play();
}
function draw() {
background(0);
}
loading on local server why ?
why are you not calling the preload() function
I don't know why I do have music successfully played, but the amplitude is zero..
How do you move that graph to the left in proccesing?
same question
this. song :)
i just recently downloaded processing and p5, but im not too sure how to run the code in the browser. im using visual studio btw
@The Coding Train
You can run a local server, by using "cd (path to file you want to run goes here)" and then running the command "python -m SimpleHTTPServer" in terminal on mac, and then go to localhost:8000
Does anyone know how to play sound files because they won't load
goooo
Hi everybody, someone know how can i save juste one section from a sound ? like the first 2 seconds from a sound of 2 minutes ? Thanks for your help!!
If you have a mac, it comes with garage bang where you can cut sounds, also, there should be some free software for windows online
Is there a way to use p5js on its own namespace?
Yes! Look for "instance mode" ruclips.net/video/Su792jEauZg/видео.html
Hi need a video on audio equaliser
No one ever goes over how to set up the html file and i'm bout to have a stroke xD
CAN YOU WRITE A SCRIPT ON ,SOLAR SYSTEM .MEANS SUN EARTH,PLANETS MOVING..ETC
he did in his coding challenges
10:53 I got trolled
7:53
wow! 1388 views 68 likes and only 8 reactions? maybe one of my favourite youtubers will react to me?