set_option

Turn on and off various RTcmix options.


Synopsis

set_option(option_name [, option_name, … ])

Parameters inside the [brackets] are optional.


Description

Use set_option to control the behavior of RTcmix: whether to play audio, to report clipping and peak amplitude, to overwrite existing sound files, and so on.

The set_option command generally precedes the rtsetparams command because much of what it does effects how rtsetparams sets up the RTcmix process.


Arguments


NOTE: All of these options may also be specified in a file .rtcmixrc created in your home directory. Check the documentation for the setup_rtcmixrc utility command.



Examples

   set_option("audio = off", "clobber=1")
   rtoutput("myfile.aif")

turns off audio playback and enables overwriting of existing files. This is the standard way to make a script that writes a sound file.

   set_option("audio=false")
   set_option("clobber = YES")
   rtoutput("myfile.aif")

this does exactly the same thing.

   set_option("record = on")
   rtsetparams(44100, 2, 128)
   rtinput("AUDIO")

sets up RTcmix to process audio received from the audio device in real time.


See Also

load, print_off, print_on, rtsetparams, rtinput, rtoutput