Stereo oscilloscope and spectrum analyzer

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 4K views
dx1987
Messages
1
Reaction score
0
I need to implement a stereo oscilloscope and spectrum analyzer using C or matlab.. I am familiar with the basic commands regarding wav files in matlab. i also created a very simple music synthesizer.

regarding the stereo oscilloscope, how do you get to display the sound wave in real time?

what i was thinking to do is to have someone speak in a microphone, and this is sampled every for example 12.5ms (determined by sampling freq ) and each point is plotted and the sequence repeats.
 
Physics news on Phys.org
You are going to get aliasing at the higher frequencies. The voice spectrum is from 0 to about 3000 Hz which following the Nyquist criteria means that you will have to sample at 6000 Hz.