ir filelen "ifilcod" ir filesr "ifilcod" ir filenchnls "ifilcod" ir filepeak "ifilcod"[, ichnl]
Obtains information about a sound file.
ifilecod – sound file to be queried
ichnl – channel to be used in calculating the peak value. Default is 0.
filelen returns the length of the sound file ifilcod in seconds. filesr returns the sample rate of the sound file ifilcod. filenchnls returns the number of channels in the sound file ifilcod. filepeak returns the peak absolute value of the sound file ifilcod. Currently, filepeak supports only AIFF-C float files.
New in Csound version 3.57