Program that recognize musical notes (1 notenot chords) and give their frequencies
13 views (last 30 days)
Show older comments
Hi !
I'm currently working on a program able to recognize musical notes. The idea is that you put a ".wav" file with several notes in it that are played at different times. Then the program analyze the file and for each notes displays it's frequency.
I first tried to work with the FFT function but I can't figure out how to extract the fundamental frequency.
I hope you can help me ! Thanks.
3 Comments
Walter Roberson
on 4 Mar 2018
You do not need to break the sounds up if you use spectogram, as spectogram automatically breaks it up into windows and calculates the frequency information over time.
Look at https://www.mathworks.com/help/signal/ref/spectrogram.html#bupm9cj and see how they put frequency along x and time along y. For any given time (that is, row), the fundamental frequency should be the one for which the x value is greatest.
Answers (1)
Long Nguyen
on 26 Jul 2019
Edited: Long Nguyen
on 27 Jul 2019
Hi there,
I'm quite new to MatLab and currently trying to make something out this idea.
I would like to ask if you were still interested in this and please to help, I have troubles interpreting the recommended ideas into coding, to be more clearly, by which command can I get data of the frequency in hertz in the workspace?
Could you please give me some code of using spectrogram to extract the fundamental frequency?
Thanks for !
1 Comment
See Also
Categories
Find more on Audio I/O and Waveform Generation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!