Page 1 of 1

audio amplitude

Posted: Sat Dec 10, 2005 1:26 pm
by hdd
I need to recover the audio amplitude of the used file in the export (LipsyncDoc.py) . there some way to have an access to it ?

thanks in advance
and sorry for my english.

Posted: Sat Dec 10, 2005 6:24 pm
by Lost Marble
Since it sounds like you're working with the source, search in the file WaveformView.py for a call to the function GetRMSAmplitude(). It takes two arguments - the start time and the duration of the section of time you want the amplitude. There are two similar functions: GetAmplitude() gets the average amplitude for the time slice, and GetMaxAmplitude() gets the maximum amplitude for the time slice.

Posted: Sun Dec 11, 2005 6:58 pm
by hdd
yes i'm digging into the code :D
i'll try asap , thanks!!!

L.