rtinput - open a sound file or audio device for reading
rtinput(input_source [, audio_type ])
Call rtinput to open a sound file, or an audio device, for subsequent reading by real-time instruments.
("Audio device'' just refers to the hardware that handles sound I/O, such as a sound card on a PC or the built-in hardware on a Mac.)
After rtinput opens a sound file, it prints information about the file, such as the header type and sampling rate.
The older disk-based Cmix instruments use input to open files for reading, not rtinput.
If input_source is "AUDIO,'' then input comes from the audio device. This lets you send input to RTcmix from a microphone or line-level source.
MIC is the default if no type is given.
rtinput("myfile.aif")
Opens "myfile.aif,'' an AIFF file in the current directory, for reading by any instruments that follow this line in the script.
rtinput("/home/bubba/snd/trouble.wav")
Opens "trouble.wav'' using a full path name.
rtinput("AUDIO")
Opens the audio device for reading.
rtsetparams, rtoutput, input