Use Non-Frames Version Previous Page Next Page
Signal Input and Output: Sound File Queries

filelen, filesr, filenchnls, filepeak

  ir      filelen    "ifilcod"
  ir      filesr     "ifilcod"
  ir      filenchnls "ifilcod"
  ir      filepeak   "ifilcod"[, ichnl]

Description

Obtains information about a sound file.

Initialization

ifilecod - sound file to be queried

ichnl - channel to be used in calculating the peak value. Default is 0.

Performance

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.

Author

Matt Ingalls
July, 1999
New in Csound version 3.57


Use Non-Frames Version Previous Page Next Page
Signal Input and Output: Sound File Queries