filepeakSignal I/O:Soundfile Queriesfilepeakfilepeak
Returns the peak absolute value of a sound file.
Description
Returns the peak absolute value of a sound file.
Syntaxir filepeak ifilcod [, ichnl]Initializationifilcod -- sound file to be queried
ichnl (optional, default=0) -- channel to
be used in calculating the peak value. Default is 0.
ichnl = 0 returns peak value of all channelsichnl > 0 returns peak value of ichnlPerformancefilepeak returns the peak absolute value of the sound file ifilcod.
Examples
Here is an example of the filepeak opcode. It uses the file filepeak.csd,
and Church.wav.
Example of the filepeak opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
The filepeak's output should include lines like this:
Peak value in file 'Church.wav' is 0.909363 (-0.825 dB).
Peak value in file 'Church_norm.wav' is 0.501190 (-6.000 dB).
See alsoSound File QueriesCreditsAuthor: &namematt;July 1999New in Csound version 3.57