Extract Musical Notes from Audio in Python with FFT

  Рет қаралды 25,043

Jeff Heaton

Jeff Heaton

Күн бұрын

Would you like to extract musical notes from audio input? In this video I show you how to use FFT to extract frequencies from a streaming audio file.
#python #fft #music #audio
Code for This Video:
github.com/jef...
~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
🖥️ Website: www.heatonrese...
🐦 Twitter - / jeffheaton
😸🐙 GitHub - github.com/jef...
📸 Instagram - / jeffheatondotcom
🦾 Discord: / discord
▶️ Subscribe: www.youtube.co...
~~~~~~~~~~~~~~ SUPPORT ME 🙏~~~~~~~~~~~~~~
🅿 Patreon - / jeffheaton
🙏 Other Ways to Support (some free) - www.heatonrese...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#Python #Tensorflow #Keras #csv #png #jpg #csv

Пікірлер: 36
@Aadityashankar
@Aadityashankar Жыл бұрын
Hello Mr.Jeff, your explanation and code are absolutely wonderful. But, rather than producing output as animation, how can we store the recognized notes in a list? Can you please do that. Thanks in advance!!
@jakubokua2083
@jakubokua2083 11 ай бұрын
Did you found anything about how to do IT by any chance?
@itsrainingafterall
@itsrainingafterall Жыл бұрын
thank u jeff u just saved me and my math grade 👍
@SS-rv6ke
@SS-rv6ke 11 күн бұрын
Thanks, Jeff, I find your video really helpful as a hobbyist programmer and musician. Could you please do a video about automatic guitar transcription - For Example : show the notes played on the guitar in real time on the virtual guitar fretboard and might as well save it as a video/gif file for later viewing? I am a guitarist and I have been manually writing the tabs - having the transcription done automatically with the use of Python will be a great time saver :) Thanks for your really informative and interesting videos Greetings
@matshagstrom9839
@matshagstrom9839 Ай бұрын
I’m looking for a computer program that can record the Notes. I’m singing while humming to a drum beat listening to headphones. Any suggestions?
@SA-oj3bo
@SA-oj3bo 2 ай бұрын
Hi Jeff, I would like a solution that outputs the main frequency and amplitude in real time of what I am humming into a microphone. Any suggestion how ot do that? Thanks in advance!
@warssup
@warssup Жыл бұрын
Can we just ignore the point, that I just submitted a publication to a high rank journal and Jeff's explanation on why the FFT input has the same shape as the output has shown me that I made there a fundamental mistake using FFT? (Luckily, thats just a side note of the paper and even if this is mentioned by the reviewers the research as a whole remains valid). But thanks again Jeff for teaching me again fundamental stuff that I overlook sometimes :D
@HeatonResearch
@HeatonResearch Жыл бұрын
Thanks, glad to help!
@patrickes4540
@patrickes4540 Жыл бұрын
Jeff, please apply This to vocals. Maybe a live visualisation for a singer. Or an Analysis afterwards. Interesting points are hitting the correct notes or vibrato Analysis. This would be sensational!
@HeatonResearch
@HeatonResearch Жыл бұрын
Maybe, that is a bit more complex. Right now I am mostly focused on separating out the considerable noise from just the instrument tracks.
@piusoblie2013
@piusoblie2013 Жыл бұрын
What if I was reading the data directly from an audio input? Like a microphone and sound sensor. How do I read those notes?
@hivemindo1722
@hivemindo1722 Жыл бұрын
Nice video! Maybe Realtime in Blender? Drivers in Geometry Nodes?
@ivansepulveda2018
@ivansepulveda2018 Жыл бұрын
Hey Jeff! Great video. Question for you: Some Wav/FLAC files separate audio data by channel (left and right). How do you or how would you deal with that? Do you average the L/R channels? Do you FFT each channel separately? thanks!
@clementsoullard
@clementsoullard 14 күн бұрын
Very didactic ! Thanks
@micaelbh
@micaelbh Жыл бұрын
Excellent teaching and explanation. Do you have any example also to recognize musical chords?
@__--JY-Moe--__
@__--JY-Moe--__ Жыл бұрын
yes it ''hertz'', hopefully not that often though! ha..ha.. pun! good luck! wow! wish I was taking the class!
@HeatonResearch
@HeatonResearch Жыл бұрын
Debugging this certainly "hurtz" a few times.
@mylesmontclair
@mylesmontclair 7 ай бұрын
This was awesome! Thanks!
@rhard007
@rhard007 Жыл бұрын
Hi Jeff, is there a way to use deep learning to identify the frequencies instead of using FFTs. Which one is more computation expensive?
@Geryf
@Geryf Жыл бұрын
Dee learning would be way way less expensive, so long as a model is trained on with various FFTs and labels notes. Calling the model would take way fewer computations than iterating over an FFT and finding the top N notes by doing a peak analysis. I’m looking to start training a model. Issue is every instrument has their own distinct overtones.
@robertobaldizon6010
@robertobaldizon6010 9 ай бұрын
Thank you very much. Very clear.
@ilovenaturesound5123
@ilovenaturesound5123 Жыл бұрын
Could you make a video on how to detect pitch accent of a word in languages like Japanese where each word consist of low and high pitch and determine the pitch of each syllable. Basically, I have an audio file of a person saying a Japanese word, ex. あめ (pronounce ah-me). I want to determine the pitch accent of each syllable whether it's High(H) or Low(L). In the case of あめ(ah-me) (two syllables), the result could be HH, HL, LH, LL. Please keep in mind that it should measure pitch relatively with other syllables. So actually HH and LL might not be appropriate so the result could be 3 cases: NeutralNeutral, HL, LH, rather that 4 cases. If the result is HL, it would would mean "雨(rain). But if the result is LH, it would mean "飴(candy)".
@gabrielleiva5944
@gabrielleiva5944 Жыл бұрын
Awesome video! It would be awesome to extract MIDI information from Audio.
@HeatonResearch
@HeatonResearch Жыл бұрын
That is kind of what I am doing on a related project.
@gabrielleiva5944
@gabrielleiva5944 Жыл бұрын
I wonder if one of the biggest challenges facing this project would be with regards to accuracy.
@JustLikeHimFr
@JustLikeHimFr Жыл бұрын
Pleaseee do the video where you perform frequency shifting or pitch shifting!!! I would love to see that, I would really appreciate it if you do.
@DIYRobotGirl
@DIYRobotGirl 11 ай бұрын
Could this work with the ability to store a song or a piece of a song in a program and the inverse kinematics of a robot could dance to that song. If the kinematics were like raise an arm or elbow or kneck when music does a thing the kinematics could do that. Maybe even have a robot to dance a skit to live music if the music is recorded where the computer can read the music in code and match kinematics with that code. I have been trying to figure out how music or song could be put in machine readable code and not play on a mp3. Somewhat that a program could actually know the song in code to put to kinematics of multiple servos.
@vladimirbosinceanu5778
@vladimirbosinceanu5778 Жыл бұрын
Great vid! Thank you
@HeatonResearch
@HeatonResearch Жыл бұрын
Thanks.
@patdesse6693
@patdesse6693 Жыл бұрын
Thanks a lot
@HeatonResearch
@HeatonResearch Жыл бұрын
You are welcome, glad it is helpful.
@thewarhammer6606
@thewarhammer6606 Жыл бұрын
FREE-quency.
@dslayer218
@dslayer218 7 ай бұрын
Exactly. Its so difficult to focus on whats being said when he's constantly saying frinquency
@Geryf
@Geryf Жыл бұрын
Hey Jeff! I love your video, just wondering if you've considered using Cepstral processing or the Harmonic Product Spectrum algorithm to determine the within each individual fft? I'm trying the peak analysis as shown in your code and it's seems to be very buggy with even with monophonic instruments. (Some overtones are higher than their base frequency which effects peak detection). Please let me know what you think, thank you!
@ivansepulveda2018
@ivansepulveda2018 Жыл бұрын
@Gery if you have a github for this I'd love to see it! (Apologies if this is a duplcate comment, KZbin is acting weird on me)
@TheGroundskeeper
@TheGroundskeeper Жыл бұрын
Holy God i haven't seen your videos in a couple years and didn't recognize you at all
Genetic Algorithm in Python generates Music (code included)
11:50
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 21 МЛН
🍉😋 #shorts
00:24
Денис Кукояка
Рет қаралды 3,5 МЛН
How To Get Married:   #short
00:22
Jin and Hattie
Рет қаралды 22 МЛН
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 10 МЛН
How to Extract Audio Features
22:19
Valerio Velardo - The Sound of AI
Рет қаралды 93 М.
Denoising Data with FFT [Python]
10:03
Steve Brunton
Рет қаралды 173 М.
Peter Gilliam - Musical Fourier (#SoME1)
17:09
Peter Gilliam
Рет қаралды 23 М.
Remove Background Noise with Fourier Transform in Python
12:37
NeuralNine
Рет қаралды 3,8 М.
What P vs NP is actually about
17:58
Polylog
Рет қаралды 97 М.
How to build a Synthesizer in Python!
7:57
Pao Coding Tutorials
Рет қаралды 35 М.
Understanding Porsche's New Six Stroke Engine Patent
21:57
driving 4 answers
Рет қаралды 754 М.
How to Extract the Fourier Transform with Python
28:24
Valerio Velardo - The Sound of AI
Рет қаралды 44 М.
What's The Longest Word You Can Write With Seven-Segment Displays?
8:56
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 21 МЛН