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

1 visualizzazione (ultimi 30 giorni)
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

Risposte (0)

Categorie

Scopri di più su Audio Processing Algorithm Design 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