17.11: Sound Visualization: Frequency Analysis with FFT - p5.js Sound Tutorial

  Рет қаралды 276,841

The Coding Train

The Coding Train

Күн бұрын

In this video, I use the p5.FFT object to analyze the frequencies (spectrum array) of a sound file. I create a "graphic equalizer" like visualization. Code: thecodingtrain.com/tracks/sou...
🕹️ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/s...
🎥 Previous: • 17.10: Sound Visualiza...
References:
🔗 p5.sound library: p5js.org/reference/#/librarie...
🔗 p5.FFT: p5js.org/reference/#/p5.FFT
🔗 this.dot song: / this-dot-feat-daniel-s...
Related Coding Challenges:
🚂 • Coding Challenge 11: 3...
🚂 • Coding Challenge 125: ...
🚂 • Coding Challenge #136....
Timestamps:
0:00 Introduction
0:43 p5.FFT object
1:27 Wikipedia page about FFT
1:59 Explain the algorithm
2:34 Amplitude at different frequency levels
2:57 Bins must be a power of 2
3:23 Add a p5.FFT object to sketch
4:16 Use analyze() to get the amplitude values along the frequency domain.
4:56 Default length of array is 1024 bins
6:16 Loop through the array
7:23 Values range between 0 and 255
8:50 Reduce the number of bins to 64
9:24 Space out the lines
9:59 Change the lines to rectangles
11:02 Add the smoothing - default is 0.8
12:59 Change to a circle
14:47 Adjust mapping to get full circle
16:19 Draw lines from the center
16:52 Suggestions for possible variations
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: thecodingtrain.com/
👾 Share Your Creation! thecodingtrain.com/guides/pas...
🚩 Suggest Topics: github.com/CodingTrain/Sugges...
💡 GitHub: github.com/CodingTrain
💬 Discord: thecodingtrain.com/discord
💖 Membership: kzfaq.infojoin
🛒 Store: standard.tv/codingtrain
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 • Coding Challenges
🎥 • Start learning here!
🔗 p5.js: p5js.org
🔗 p5.js Web Editor: editor.p5js.org/
🔗 Processing: processing.org
📄 Code of Conduct: github.com/CodingTrain/Code-o...
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecod...
#soundvisualization #frequencyanalysis #fft #p5js

Пікірлер: 202
@amber1862
@amber1862 4 жыл бұрын
For anyone interested, one of the reasons why his frequency spectrum has a 'gap' in the highest frequencies, is because he probably used an MP3 audio file. He quickly mentioned there isn't enough frequency information which is absolutely correct, but a contributing factor to having a gap in the highest frequencies is often the result of using an MP3 file. MP3 compression-depending on the MP3 settings when rendering an audio file to MP3-will often 'cut' off all frequencies above a specific high frequency (usually around 16kHz+) all the way to the audio file's samplerate/2. This is one of the techniques MP3 compression uses to reduce the size of the file. So if this audio file he used had a samplerate of 44.1kHz, that means the MP3 file probably cuts off the very high frequencies from 16,000Hz (roughly) all the way to 22050Hz. That's why you see a clear gap in the circle towards the end of the video. If you're using an MP3 audio file, bare this in mind. You might have to manually adjust the angle you pass in to the sine and cosine functions to make it 'fit' in to a perfect circle by adding a little extra to it :).
@manguitodelicioso
@manguitodelicioso 3 жыл бұрын
Just amazing the things you do with p5. It took me some of the today's wee hours to watch and understand all the 11 videos of this serie of lessons, but it is was very worth it. The way you teach is so original and fun that I was hooked up during all the 11 videos. Thank you very much for teaching all these interesting stuff that I'm also learning it in my first course of programming at University of London.
@ophelialavey
@ophelialavey 2 жыл бұрын
Your videos are wonderful, keep making more! Some of the best coding videos I've seen online, and so creative too.
@realcygnus
@realcygnus 7 жыл бұрын
priceless! ........its crazy how long something like this could take in the old days
@jonathanmantello3974
@jonathanmantello3974 2 жыл бұрын
Lol, have just started the video and know I'm in for a good one. I love the way you explain things, and it really makes sense to me! Thinking to myself, I should watch more of your videos!
@cimmik
@cimmik 4 жыл бұрын
Years ago, when you had few enough viewers to respond to every question in the comments, I requested videos on sound analysis. When you uploaded this series, I didn't have time to do sound projects, but now I'm going through them and thank you so much for having made them in the meantime. FFT is very interesting. I got an idea for a way to compress sound in a way that could make music files take less memory but keeping a high quality. I don't know if it will work yet, but I'm just about to try it out.
@TheCodingTrain
@TheCodingTrain 4 жыл бұрын
Look forward to hearing how it goes!
@blingbam404
@blingbam404 7 жыл бұрын
I've been watching your videos for a while now and love your content more than any other programming educator I know of. I'd like to see a series where you help us understand all the facets of web development. Not necessarily going into expert level depth but giving us an idea about what its all about; which pieces of software are used and why, how do databases work, etc.
@jj2201
@jj2201 2 жыл бұрын
This video was unbelievably helpful!!! Been doing research all afternoon and finally stumbled across this series! Now I'm going to try hooking an FFT script to an LED grid on my wall to make a custom graphic EQ for a cool party effect. Thanks for the awesome content, I learn so much watching these :) The "This dot" song was my jam by the way XD
@MatheusFerreira-hg9dr
@MatheusFerreira-hg9dr Жыл бұрын
wow that sounds amazing! do you have a link where I could check this out?
@realcygnus
@realcygnus 6 жыл бұрын
Cool ! It took me like months to program something similar to this(a 3D waterfall display version) on windows in like 1996. Just finding out what OS/SDK/Libs communicate with the sound card was like half the battle. I even used my own 3D maths at 1st but eventually used the 1st version of directX, which had its own learning curve. & if it wasn't for some genius's posting their quality FFT source, I would have been looking at a whole other project requiring a stack of books & even more weeks or months & to outstretch my abilities as well. Now you can get just about the same thing with only a few lines of simple code in any browser. that really is some nice progress imo ! (for the app/front-end developers anyway). I sure as hell wouldn't want to have to write these interpreters and/or be responsible for all of the sloppy(for lack of a better word) layers that makes all of this possible !
@ciph3r836
@ciph3r836 4 жыл бұрын
You old guys have some serious skills
@codeunited5905
@codeunited5905 Жыл бұрын
@@ciph3r836 fr
@pietrononame4945
@pietrononame4945 17 күн бұрын
@@ciph3r836 "old" or "experienced"?
@AsaTaylor
@AsaTaylor 7 жыл бұрын
Your vector field visualization made me learn how to do lots of lines in one drawCall: beginShape(LINES); then put both the start and end point in your for loop.
@michaelberentsen6827
@michaelberentsen6827 6 жыл бұрын
What a great series! Thank you so much. I have one question though: Did you ever end up making that video with many sound files and many buttons? I've been trying to figure it out and can't seem to figure it out.
@user-gw5zs1qh2z
@user-gw5zs1qh2z 4 жыл бұрын
So cool this library. I used it to draw a heatmap like in Spectroid and creating different filter.
@user-fn8wl8de9f
@user-fn8wl8de9f 6 жыл бұрын
Fantastic! Love your channel so much!
@seahad4744
@seahad4744 5 жыл бұрын
thank you for the videos, makes learning p5 on my own less hair ripping outy
@leeoliver9322
@leeoliver9322 4 жыл бұрын
I like how even when part of the code is put in wrong, it creates an an effect that makes me think "you know what I could do with that?" Also, hearing that "This Dot" song is hilarious at 1.75 speed lol
@ekremdincel1505
@ekremdincel1505 4 жыл бұрын
Omg I literally though about sound visualition and this video come out!
@ekremdincel1505
@ekremdincel1505 3 жыл бұрын
@Nick Bravo look at the description.
@emptiness116
@emptiness116 2 жыл бұрын
The most realistic coding session
@joesiu4972
@joesiu4972 5 жыл бұрын
I use p5 because of you man I never would've found it if it wasn't for you
@bellanti
@bellanti 2 жыл бұрын
I really like to see that program you said that takes the sound and make a tridimensional visualization like a landscape. Thanks for any info and for the videos 😍
@ModxVoldHunter
@ModxVoldHunter Жыл бұрын
Holy cow, man. I'm actually working on a Visualizer and this just got interesting. Thank you very much, I didn't know you could do that. Is the language in JavaScript if I may ask?
@deckarep
@deckarep 2 жыл бұрын
Forget the FFT tutorial, let’s talk about the jam called: “this dot” that’s dance music at its finest!
@LukasOwen
@LukasOwen 6 жыл бұрын
i knew you will help me one day
@clbgrmn
@clbgrmn 7 жыл бұрын
Love the tutorials. (It's pronounced Four-ee-ay) :) Keep up the good work!
@gloubiboulgazeblob
@gloubiboulgazeblob 4 жыл бұрын
Did you ever tried with a microphone ? Here's how, a simple sketch BUT you MUST use HTTPS (browser asks permission to use the microphone) AND add p5.sound.js (p5.min.js doesn't include it apparently...). If you're on a laptop like me, don't forget to connect a headset, otherwise you'll hear a larsen ! var mic; var spectrum; const canvas = { width: window.innerWidth, height: window.innerHeight }; function setup() { mic = new p5.AudioIn(); mic.start(); fft = new p5.FFT(); mic.connect();//needed in order to route sound into p5.FFT createCanvas(canvas.width, canvas.height); } function draw() { background(0); micLevel = mic.getLevel(); spectrum = fft.analyze(); for (let f = 0; f < 1024; f++) { stroke(spectrum[f], 0,0);//beautiful reds :-) line(f, 0, f, spectrum[f]); } }
@AlecArmbruster
@AlecArmbruster 3 жыл бұрын
A true hero in YT comments, what an elegant example!
@taihatranduc8613
@taihatranduc8613 4 жыл бұрын
thank you for making this
@serginx
@serginx 3 жыл бұрын
Teacher, I need to record and listen at the same time than I use any filter to cancel the noises in determined frequencies. Do you know if it is possible?
@KucharJosef
@KucharJosef 7 жыл бұрын
Omg, you can combine your blobby coding challenge with this
@TheCodingTrain
@TheCodingTrain 7 жыл бұрын
+Pepa489 good idea!
@shammusurrehman9939
@shammusurrehman9939 6 жыл бұрын
Good work sir.... which editor you are using i want to use this ?? Is any way we can remove the low amplitude frequencies using this library....I want to use it to remove background noises in audio ...
@aferetis2379
@aferetis2379 6 жыл бұрын
thank you very much!
@djamparo6636
@djamparo6636 6 жыл бұрын
You should make a tutorial on wavesurfed sounds? Its a representation like the one of soundcloud. Should be very challanging
@jack01rdk
@jack01rdk 6 жыл бұрын
This is great , but how about the source audio node from live streaming audio ?
@koolster5
@koolster5 3 жыл бұрын
Hey, great video. I was wondering if you had a video where I can get the frequency of a single note if i play it on a guitar say. I would love to decipher the frequency of each note I play.
@BenRacicot
@BenRacicot 3 жыл бұрын
@Patrick O'Toole this is exactly why I'm here also, (kind of) I created one of these with the native WebAudio API and as he mentions at 7:44 we have skewed frequency levels. About 75% of sound resides at the lowest end band bars which is not accurate and not really even useful. Built an Angular 11 component at github.com/BenRacicot/ng-audio/blob/main/src/app/sys-sound/sys-sound.component.ts I'm tracking the question at stackoverflow.com/questions/64877198/webaudio-db-visualization-not-reflecting-frequency-bands-as-expected?noredirect=1#comment114708083_64877198
@lorenzosalmina8128
@lorenzosalmina8128 2 жыл бұрын
Hello:) great video this is really helpful thank you! Do you have a processing version? Or someone knows if there are any good references to do something like this on processing?
@zDanix
@zDanix 7 жыл бұрын
Thank you!
@BobIrving2
@BobIrving2 5 жыл бұрын
Do you do this anywhere with regular Processing?
@andrzejsokola
@andrzejsokola 6 жыл бұрын
Epic video
@alexanderkiryanov7190
@alexanderkiryanov7190 3 жыл бұрын
Good afternoon, my name is Alexander! I have a little question. can you tell me how to export an audio file to an array of amplitude numbers? in the form of a txt file for example. I can't seem to find a simple solution. maybe how can this be done with your library and browser?
@dayanrodriguez1392
@dayanrodriguez1392 4 жыл бұрын
I think it would be pretty interesting if you tried writing the algorithm as a challenge.
@deberenguer7917
@deberenguer7917 7 жыл бұрын
Pretty sure the Frequencies are inverted. After the "this-dot" intro, when the kick starts, you see the Freqs on the right start moving -- should be on the left. Also, if I had to guess, the range is only going from ~2kHz to ~100Hz.. It would look way better if you invert the order of the array and also expand to a range to something like 20Hz to 20kHz. Great job though!
@subhaskadam5529
@subhaskadam5529 2 жыл бұрын
between loving the music
@halilteker3139
@halilteker3139 5 жыл бұрын
How can we utilize p5.js to determine the tone (at different octaves) that is playing from an instrument (e.g. piano)?
@jimrummy1300
@jimrummy1300 7 жыл бұрын
Take me to the frequency domain baby!
@asdfasdfasdf383
@asdfasdfasdf383 4 жыл бұрын
Very nice video! I'm curious if this method (Fourier Transform) can be used to extrac data out of mp3 files and create minimalistic midi versions of those mp3's. Would it be possible (at least in theory) to extract values from for example a chord to get the individual notes. (Probably start with simple songs, unisono (only one voice or instrument)) Example: You take a song in mp3 format and get the sheet notes.
@oscarbrunelle4987
@oscarbrunelle4987 Жыл бұрын
Did you try to do it yet ?
@Lucas-bf4pw
@Lucas-bf4pw 4 жыл бұрын
Ironically, what you did previously with the sound rotating in a circle is very very close to what the fourrier transform is really doing 3blue1brown has a series explaining this
@aheraldofthenewage2039
@aheraldofthenewage2039 4 жыл бұрын
thank you!
@Fractal80Y
@Fractal80Y 7 жыл бұрын
the ear is concerned with loudness when a signal has a larger average RMS value hence why smoothing is handy. Peak values or transients not so...
@mukulbarai1441
@mukulbarai1441 6 жыл бұрын
Hi Daniel, do you rest you wrist on laptop while typing?
@angledcoathanger
@angledcoathanger 7 жыл бұрын
I don't know if you saw my earlier pleas for an audio themed code challenge but thank you so much regardless!!
@TheCodingTrain
@TheCodingTrain 7 жыл бұрын
You're welcome!
@shuhaoshang
@shuhaoshang 7 жыл бұрын
Wow, really helps for understanding p5.FFT Yeah, the frequency spectrum and time domain sounds like hocus-pocus to me before.
@TheCodingTrain
@TheCodingTrain 7 жыл бұрын
Yeah, thank you!
@dvaVivy
@dvaVivy 4 жыл бұрын
Is there a processing version?
@Hoobizone
@Hoobizone 4 жыл бұрын
Perfect!!
@beaverjoe9171
@beaverjoe9171 5 жыл бұрын
Choose one good music is the key to follow the p5.sound.js tutorial. Mark this necessary tips please everybody.
@oop_web7707
@oop_web7707 4 жыл бұрын
Thank you so much for this an awesome series, but i have an issue if I save in text editor then it works, but if I run my index.html in any browser then it gives me an error (The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page). Please help. What should I do? There is a way to fix that with p5.js?
@farhanf650
@farhanf650 4 жыл бұрын
Helped me program a custom player/visualizer for iOS! Thanks
@fakruddinp419
@fakruddinp419 5 жыл бұрын
How to estimate Estimate the total amount of operations (Floating point operations) needed by the model to process a ten seconds audio
@slightlygruff
@slightlygruff 5 жыл бұрын
Can we visuaize speech sounds in such a way that one would be able to tell which sound is played by just looking at the visualization? Do you think it's possible?
@Mishiman
@Mishiman 3 жыл бұрын
not with just FFT
@TheJdip123
@TheJdip123 7 жыл бұрын
Hi, I am following your steps to create a player for my website. But my website failed to load the mp3 file. I performed loadSound in the preload function and the website just stopped at the "Loading" page and nothing happened. I tried different mp3 files and changing the accessing right with chmod but still nothing happened. T_T help me
@ambientsoda106
@ambientsoda106 6 жыл бұрын
How would you access the sounds via the microphone?
@user-of3xm7sv5g
@user-of3xm7sv5g 5 жыл бұрын
I have a question how can I make the static frequencies? I can't find anywhere. Please)))
@jeffmarc5295
@jeffmarc5295 3 жыл бұрын
Great! went to link for source code but can't find anything on sound there!? Hoe do I download source for your tutorials? Thanks Jeff Marc
@huseyindogan546
@huseyindogan546 4 жыл бұрын
Hi, I want to light up LEDs with FFT. How can I compare the sounds in the input?
@izot111
@izot111 6 жыл бұрын
Is there any smart way to determine the bassline from the frequencies spectrum?
@hussainsalih3520
@hussainsalih3520 4 жыл бұрын
thanks so so * 1000 much for this my teacher i'm arabic person followed you. :)
@jamesblock8384
@jamesblock8384 6 жыл бұрын
I've noticed that the spectrum height seems to always be lower in the higher frequency ranges. I think it would be nice to kind of normalize the height a bit across the spectrum. Maybe by having a var that gets incremented by a certain value and added to the length of the line with each index of the spectrum array. I haven't tested this out yet, If anyone has a better idea of how to achieve this, I'd love to hear it. Also is there a way to access the RMS (Root Mean Square) values of the audio?
@QG1996
@QG1996 6 жыл бұрын
James Block rms I think should be equal to 2^(1/2)/2
@user-fy7kv3pp8r
@user-fy7kv3pp8r 3 жыл бұрын
Is there anyway, we could put axis on our canvas? (x axis frequency and y axis amplitude). Thanks
@jhonatanlopez4346
@jhonatanlopez4346 6 жыл бұрын
Hi, very nice job. I'm loking to use prossesing as a audio vizualizer taking my two main audio output signals (signal before my speakers) to vizualize it. Is it pposible with prossesing? I mean I would like to use an other application or software to perform music and I would love use prossesing as a visalizer. I've seen many people with this problem trought the web. Thx in advance.
@TheCodingTrain
@TheCodingTrain 6 жыл бұрын
Would you mind asking at discourse.processing.org/! It's a better platform for Processing and p5.js related code questions. You can share code there easily! Feel free to link from here to your post.
@user-tl4ld4mq2y
@user-tl4ld4mq2y 6 жыл бұрын
teacher, is there any way we can whoose to drill down and make a detailed measurement??
@KiranKJolly
@KiranKJolly 3 жыл бұрын
I am creating an android application that plays a beep sound whenever it detects a pre-defined sound. In another way, I have three drum/piano/vocal sequence mp3 file with me which is stored along with the apk assets. After installation, the three files moved to the internal memory. Whenever I play any song/video in any of the video/audio player(eg:youtube/vlc) on my mobile, if the music sequence of the playing audio matches any of the already stored three mp3 files, Then a beep sound should produce. This is my aim. But I am hard to find such a library to compare a music which is playing inside the mobile with another app. Google assistant and Shazam app just listen to audio from the mic and compare the audio. But in my case, I need to compare audio which is the playing device itself.
@robodev6033
@robodev6033 4 жыл бұрын
How can i update those parameters by input from the html to the code in p5 ? I'm new to p5 .
@zlackbiro
@zlackbiro 5 жыл бұрын
How you able to start this on page load without event?
@upya3813
@upya3813 5 жыл бұрын
sweet! ...now, how do I see what MY music looks like without learning how to JS?
@staijn2344
@staijn2344 4 жыл бұрын
Late response I know, but you can replace the sound file with your mic, and if you are using windows you can pass your pc sounds (Every sound on your pc, so music, error messages sounds etc) through Stereo mix. Then you can visualize your music. P5.js looks a lot like processing, which is built on Java. So you don't really really need JS knowledge, I don't have it either
@kalab4234
@kalab4234 6 жыл бұрын
I know this is an older video, and my comment might honestly have nothing to do with what's talked about in this video, but I've been trying to find information on something and I haven't been able to come across anything useful anywhere. I have chromesthesia (a form of synesthesia), so I interpret music as color. I'm also a musician, and until recently I thought that everyone saw/felt color when listening to music. Now that I know what I "have", I've started paying attention to it more, and I've thought it might be cool to try and visualize it for other people, and I think it would be really awesome to somehow even incorporate that visualizer into a live show scenario for my shows as a musician. I know visualizers exist, but what I'm thinking of would be different: each note from a guitar, for instance, would be represented by a light wave on a wall projection or on a screen. Depending on the note, the light wave-form would change "shape" and color. So for me, I could use this and actually reverse engineer it, in a sense, so that I'd be writing music with a light show in mind. I'd know that an A Minor chord is royal blue, and some notes from a G major chord are green, so I'd compose a song with that in mind to create certain shapes that flow into other shapes and colors that blend to form what I'M seeing when I play music. Anyway, sorry for the long explanation. Basically, I guess I want to know where I could start with all of this? Is there a program that already exists that I've just not been able to find? Am I going to have to learn code and create a program myself that does this? I know in general the program would need to be able to detect musical notes as frequencies, and then it would need to convert that into some sort of computer data that could be read by another program (the visualizer I'm assuming) that could convert that computer data into the color that I choose. Anybody's help would be greatly appreciated! If you're a coder, I'd even be willing to work WITH you to make this little idea of mine come to life on a small scale.
@phenylalaninemusic
@phenylalaninemusic 6 жыл бұрын
Kalab Buzan I used to experience something similar, but only during the hypnagogic state (right when you’re falling asleep). I would see colored shapes that would correspond to the music. It doesn’t happen anymore, but I would like to create a program that does something similar. That’s one of the reasons I started to learn Processing. Have you seen Kaitlyn Hova’s videos?
@kalab4234
@kalab4234 6 жыл бұрын
phenylalanine Nope, I haven't
@lureed3466
@lureed3466 6 жыл бұрын
oooooh yes pls combine the Perlin noise field with the fft !
@herrbanane
@herrbanane 5 жыл бұрын
I just can't get it to run like that. Where do I have to put the files to?
@Eren-dq4uj
@Eren-dq4uj 6 жыл бұрын
I need a simple application that can tell me the frequency of the sound outside. The audio input will be my microphone. I want to make it my self and implement a formula or something that will calculate the speed of the soundsource. I need this because I am making my "Lecture" about DopplerEffect. I want to make an app that can calculta automatically the speed of the soundsource. Can you or somebody else help me with this? I watched lot of tutorials from you and they help me a lot, but what I want to achieve is not included in the tutorial. :) XD
@Akshatgiri
@Akshatgiri 7 жыл бұрын
Question - I was trying to make a beep - yes, beep detection program..which detects the number of beeps in the sound. I got it to log the values of the spectrum when there was a beep, but i am still not sure how i can count the beeps. It logs multiple arrays each time their is beep. Any idea on how i could do that? Atleast point me towards the right direction. Thanks.
@AsifMehedi
@AsifMehedi 7 жыл бұрын
I'm not entirely sure what you're trying to do, but I think PeakDetect will be useful: p5js.org/reference/#/p5.PeakDetect
@crisiberny
@crisiberny 7 жыл бұрын
It is possible to do this in Processing? If it is, it could be interesting to use this along with an Arduino and then connect it to some LEDs and make a VuMeter or a Frequency Analyzer.
@TheCodingTrain
@TheCodingTrain 7 жыл бұрын
Yes indeed, check out the Processing sound library! processing.org/reference/libraries/sound/
@mathieugouttenoire9665
@mathieugouttenoire9665 7 жыл бұрын
Is it possible to make this in processing istead of p5.js ?
@niklaskarlsson236
@niklaskarlsson236 6 жыл бұрын
hi, can i measure STI in a recorded file? :-)
@goldthumb
@goldthumb Жыл бұрын
To continue with Daniel's last sentence in this video, "future" becomes "today" after 6 years. Yes I'm still here, the 6th day in a row starting from the last day of 2022. I can see from the 100 long list that the next is 12.1 about Node. Bye sounds.
@fazalmehmood6802
@fazalmehmood6802 6 жыл бұрын
Why didn't you try that with a a microphone input instead of a song?
@mehmedkurtic4483
@mehmedkurtic4483 7 жыл бұрын
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!
@jeanjamil7891
@jeanjamil7891 5 жыл бұрын
Hi how we can use fft with vb or other language to get a frequecies and plot it
@Oceaniawtf
@Oceaniawtf 5 жыл бұрын
This is old af, but i still want to ask how the fft values are "dynamic". From signal theory i learned that you calculate fft for a certain window of time, returning fixed values that depends by the length of the window, the smoothness and so on. So what about this?
@d_vibe-swe
@d_vibe-swe 5 жыл бұрын
I guess that the window of time is how often the FFT is updated?
@Jovo-fb4mb
@Jovo-fb4mb 4 жыл бұрын
I’m wanting to creat something similar to this, But I need it to read data from a DAW. I’d like to have 4 input tracks as bars and have them bounce up and down to the frequency. Is that possible?
@romaina9129
@romaina9129 4 жыл бұрын
On Processing, if you want to analyse data from a DAW instead of the simple mic, you will have to use an audio router like LoopBack (not free unfortunately) it works like a charm. But maybe it's easier with p5.js !
@noxgaming2232
@noxgaming2232 3 жыл бұрын
Actually i want to reverse this process what if u already have the array of everything beats per every milisecond or seconds u have bars timbers everything can u generate the sound based on that ? the meaning I'm getting the response in spotify audio analyzer API which give me tones of array input of songs so based on that can I make real sound ?
@Lukrator
@Lukrator 7 жыл бұрын
you could take some fft numbers to animate 3d terrain, or fractal trees :D
@TheCodingTrain
@TheCodingTrain 7 жыл бұрын
Great idea!
@camillefeghali7656
@camillefeghali7656 6 жыл бұрын
Thanks for the awesome vid, how would one go about animating said terrain//objects ?
@yannmassard3970
@yannmassard3970 5 жыл бұрын
yeah but what would be the depth dimension ?
@EricPham-gr8pg
@EricPham-gr8pg 7 ай бұрын
Instead of analyzing it we should assign the sound stem cell we needed base on alphabet and use 3d surrounding sound paint background needed to reproduce same stem no matter what terrain to make that happen then use tone and pich of command officer so if same word of different voice had different affect and later each profession are assigned different stem base on functional and responsibility
@89elmonster
@89elmonster 7 жыл бұрын
You should make a program where it takes in a picture and spits out circles or squares based on the pixels of the image
@raji3660
@raji3660 7 жыл бұрын
How to develop 3D FFT? Waterplot model
@gomo8651
@gomo8651 5 жыл бұрын
Bonus question: How to detect any browser sound or computer sound? Does it only work with loading files?
@gomo8651
@gomo8651 5 жыл бұрын
I think I found something :) developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API
@alphatube1173
@alphatube1173 4 жыл бұрын
Dear can you help me android based resound smart hearing aid
@cking9145
@cking9145 2 жыл бұрын
What is this first old song called?
@Austinchoate100
@Austinchoate100 7 жыл бұрын
How does one turn the volume up and down?
@liammay7756
@liammay7756 3 жыл бұрын
I apologize I'm new to this.. can this work on windows?
@ankitsharma8221
@ankitsharma8221 5 жыл бұрын
windows media player did this before it was cool
@sigitpriyohartanto2129
@sigitpriyohartanto2129 3 жыл бұрын
Dear sir how to make a comparison between one person's voice and another. For example: an English teacher gives an example of the pronunciation of a sentence to a kindergarten student: "I am reading a book" then followed by a kindergarten student: "I am reading a book". how to compare it so that the results uttered by the kindergarten students are the same as the teacher. Best Regard
@laurascopazzo2017
@laurascopazzo2017 6 жыл бұрын
it would be great if you could make tutorials for Sound Visualization in Processing! I feel like it's so much more confusing in Java :(
@TheCodingTrain
@TheCodingTrain 6 жыл бұрын
Please suggest here! github.com/CodingTrain/Rainbow-Topics/issues
@navjotsingh2251
@navjotsingh2251 5 жыл бұрын
Laura Scopazzo Java isn't that bad! Compared to C/C++ thats as easy as it gets if you want to go more technical than JavaScript tbh
@shikhabrahmachari238
@shikhabrahmachari238 4 жыл бұрын
How do o display the amplitude
@pokemongouci8295
@pokemongouci8295 4 жыл бұрын
can update the github link for the code? i cant find it
@maxvecchitto8030
@maxvecchitto8030 3 жыл бұрын
I can't find the source code either on github
Coding Challenge 180: Falling Sand
23:00
The Coding Train
Рет қаралды 758 М.
Coding Challenge 166: ASCII Text Images
22:42
The Coding Train
Рет қаралды 1,1 МЛН
Would you like a delicious big mooncake? #shorts#Mooncake #China #Chinesefood
00:30
Они убрались очень быстро!
00:40
Аришнев
Рет қаралды 3,1 МЛН
Coding Challenge 11: 3D Terrain Generation with Perlin Noise in Processing
22:44
The Math Behind Fourier Transforms & Music
3:01
Amy Liu
Рет қаралды 25 М.
Coding Challenge 125: Fourier Series
28:47
The Coding Train
Рет қаралды 581 М.
Coding Challenge 181: Weighted Voronoi Stippling
28:59
The Coding Train
Рет қаралды 152 М.
Understanding FFT in Audio Measurements
26:05
Audio Science Review
Рет қаралды 25 М.
p5.js Coding Tutorial | Basics of Particle Systems
26:58
Patt Vira
Рет қаралды 1,5 М.
Recreating Vintage Computer Art with Processing
16:44
Alexander Miller
Рет қаралды 346 М.
Coding Challenge #136.1: Polar Perlin Noise Loops
22:02
The Coding Train
Рет қаралды 193 М.
17.9: Sound Visualization: Graphing Amplitude - p5.js Sound Tutorial
13:36
But what are Hamming codes? The origin of error correction
20:05
3Blue1Brown
Рет қаралды 2,3 МЛН