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

13 visualizzazioni (ultimi 30 giorni)
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 Commenti
Drago Smoke
Drago Smoke il 4 Mar 2018
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 il 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.

Accedi per commentare.

Risposte (1)

Long Nguyen
Long Nguyen il 26 Lug 2019
Modificato: Long Nguyen il 27 Lug 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 !

Categorie

Scopri di più su Audio I/O and Waveform Generation in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by