Lame as sound change detector?

Christian Melki <[email protected]>
Newsgroups gmane.comp.audio.mp3.lame
Message-ID <[email protected]>
Hi.

Im using lame & alsa to capture and directly stream mp3 encoded pcm on raw tcp.
I'm thinking about adding something as a callback that you would register with an absolute energy difference tolerance.
This would be added somewhere after the fft's and would compare the previous (one or more blocks) energies in the frequency bands to the current one.
If a frequency spectra would stick out to much, then the code should run the callback.
Either this, or just a callback to send each energy spectra to the user when it has been completed. This way the user can decide for himself.

I realize that this is probably very naive and you will have to excuse me for that, I have only basic understanding of signal math (have not applied any since the university studies).
Anyway, a function of that kind would allow me to hook into lame and use it as a realtime beat detector, sound alarm trip, or something else useful without having to resort to wasting much more cpu power.

Regards,
Christian
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.