filesr Signal I/O:Soundfile Queries filesr filesr Returns the sample rate of a sound file. Description Returns the sample rate of a sound file. Syntax ir filesr ifilcod [, iallowraw] Initialization ifilcod -- sound file to be queried iallowraw -- (Optional) Allow raw sound files (default=1) Performance filesr 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 also Sound File Queries Credits Author: &namematt; July 1999 New in Csound version 3.57