filesrSignal I/O:Soundfile Queriesfilesrfilesr
Returns the sample rate of a sound file.
Description
Returns the sample rate of a sound file.
Syntaxir filesr ifilcod [, iallowraw]Initializationifilcod -- sound file to be queried
iallowraw -- (Optional) Allow raw sound files (default=1)
Performancefilesr returns the sample rate of the sound file ifilcod. filesr can return the sample rate of convolve and PVOC files if the iallowraw flag is not zero (it is non-zero by default).
Examples
Here is an example of the filesr opcode. It uses the file filesr.csd,
and drumsMlp.wav.
Example of the filesr opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
The audio file drumsMlp.wav was sampled at 44.1 KHz. So filesr's output should include a line like this:
sample rate = 44100.000000, size = 131072.000000
See alsoSound File QueriesCreditsAuthor: &namematt;July 1999New in Csound version 3.57