How Can i detect the frequency/loudness of a music

Windows specific forum
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by plouf.

What i mean is for example load and play an mp3 and/or wav
and detect the frequency - loudness of the sound file the specific
time for moving a dancer for example
Has anyone any idea ?

Christos



Edited by - plouf on 08 May 2002 15:51:10
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Pupil.
What i mean is for example load and play an mp3 and/or wav
and detect the frequency - loudness of the sound file the specific
time for moving a dancer for example
Has anyone any idea ?

Christos

Edited by - plouf on 08 May 2002 15:51:10
If you want to get the frequency out of digitized sound i think the only way is to use FFT(Fast fourier transform), perhaps in an mp3 these are preserved somehow from the compression?(haven't checked the specs for mp3 compression so i really don't know) Anyway the loudness shouldn't be to hard just average the amplitude over a given interval(unless you wanted the amplitude of a specific frequency component, then it's back to FFT again)

That wasn't any help i guess, perhaps someone else got something more substancial for you to dig your teeth into.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.

Is that what your looking for ?

viewtopic.php?t=1284

Its a long way to the top if you wanna .....CodeGuru
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by plouf.

Yes thats it Thanks Rings


Christos
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Stan.

Hi,

For envelope detection have a look at :

http://www.numerix-dsp.com/envelope.html

Hope this helps.

Stan




Since I attended an MS course, my programs no longer have bugs ... just hidden "features" !! [ PB. registered user ]
Post Reply