Program that recognize musical notes (1 notenot chords) and give their frequencies

11 次查看(过去 30 天)
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 个评论
Drago Smoke
Drago Smoke 2018-3-4
Thank you.
Once I've broke the sound to isolate each note is the spectrogram function useful to get the fundamental frequency of a note ?
Walter Roberson
Walter Roberson 2018-3-4
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.

请先登录,再进行评论。

回答(1 个)

Long Nguyen
Long Nguyen 2019-7-26
编辑:Long Nguyen 2019-7-27
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 !

类别

Help CenterFile Exchange 中查找有关 Audio I/O and Waveform Generation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by