an open-source digital signal processing and sound synthesis language
about · links · contact
filesr - return soundfile sampling rate information


Synopsis

samprate = filesr("filename")


Description

filesr simply returns the sampling rate used for the soundfile filename. filename may be an absolute or relative pathname to the soundfile. This command does not require that the soundfile be previously opened by the rtinput command.


Arguments

"filename"
A string representing the name of the soundfile to be queried. It may be an absolute or relative pathname to the soundfile. If it is relative, then it will be relative to the directory where the CMIX command was invoked.


Examples

   srate = filesr("somesoundfile")

See Also

CHANS, DUR, PEAK, SR, filechans, filedur, filepeak, rtinput