filevalidSignal I/O:Soundfile Queriesfilevalidfilevalid
Checks that a file can be read at initialisation or performance time.
Description
Returns 1 if the sound file exists and is readable, or 0 if not.
Syntaxir filevalid ifilcodkr filevalid ifilcodInitializationifilcod -- sound file to be queried
ir -- return code (1 if the sound file
ifilcod can be read).
Performancekr -- return code (1 if the sound file
ifilcod can be read).
Examples
Here is an example of the filevalid opcode. It uses the file filevalid.csd.
Example of the filevalid opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
The output should include a line like this:
Audiofile 'frox.wav' does not exist!
See alsoSound File QueriesCreditsAuthor: &namematt;July 2010New in Csound version 5.13