Audio Signal Processing - dynamically showing freq while wav is read..

3 次查看(过去 30 天)
Hey All,
For an assignment at uni, a pitch detector, I was wondering if its possible to do a few things in Matlab. In a nutshell, the program is meant to read an audio file - this is a simple monophonic rising scale from C4 to B4 using a sinewaves (each note is 1 sec long). It is then meant to analyse the file and using BP-IIR filters, determine the pitch of each note played.
Now, the info we are being drip fed slowly suggests that it reads the audio file and displays the frequency etc on a graph afterwards but i wanted to think outside the box (and also for extra credit). I was wondering if i could display frequency and other info while the audio is being read (not afterwards), so basically the graph stays main focus on screen and as the audio changes to each note, the graph updates and based upon the current fundamental frequency being read, the Note value is displayed (this could be in the form of an if statement or something).
I hope i'm making sense. Here's the basic psuedo code for what i want:
WHILE READING WAV FILE;
ANALYSE FUNDAMENTAL FREQUENCY OF CURRENT SOUND;
DISPLAY ON GRAPH:
FREQUENCY / MAGNITUDE;
DISPLAY NOTE VALUE (THIS COULD BE IF STATEMENT COMPARING FREQ TO STRING VALUE;
DISPLAY FILTER CURVES;
END WHILE;
This way, for ANY audio file played (i will create a few wavs that have alternate note orders), the program can determine the pitch as its read.
Anyway, hope i'm making sense :)
Paul

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Audio Processing Algorithm Design 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by