Mail Archives: djgpp/1999/02/11/04:53:03
Cminnican writes:
> I am interested in writing some code to analyse sound in realtime
> through the line in input on my soundcard. I would like to be able
> to extract certain frequencies from the incoming sound and use these
> values to create visual effects that respond to the music as it is
> playing.
You need to do a Fourier analysis of the input data. That's quite a
complex operation, but you can probably find some code for it on the
net (sorry, I don't know where). Alternatively, you should be able
to find descriptions of the algorithm in a computing or math textbook:
check the library.
> Any help would be appreciated such as how to receive data from the
> line in
The Allegro library (http://www.talula.demon.co.uk/allegro) can do
this for you. Look at the akaitest program for some example code.
Shawn Hargreaves.
- Raw text -