Function
(playfile {keyword value})
Plays file in a manner appropriate for the file type (extension) of file.
play supports the following keyword arguments for all file types:
:play boolean
:verbose boolean
:wait boolean
Other keyword arguments may be available depending on the type of file:
audio-file (.aiff, .wav, .snd)
If CLM is loaded then play passes file directly to dac along with any of the following keyword arguments:
:start number:end number
If CLM is not loaded then play executes the shell command
string *audio-player* to play file. CM
attempts to provide a valid audio player command for each operating
system:
sndplay, qtplay else open.sndplayThe *audio-player* variable can be reset to a different
player in a ~/.cminit.lisp initialization file.
Passes file to clm-load along with any keyword
arguments specfied to play.
Executes the shell command string *midi-player* to
play file. CM attempts to provide a valid MIDI player
command for each operating system:
qtplay, open.timidityThe *midi-player* variable can be reset to a different
player in a ~/.cminit.lisp initialization file.
Executes the shell command string *scsynth* and passes
it file and any keyword value supported by sc-file.
CM attempts to find a valid *scsynth* command for each
operating system:
scsynth.
scsynth
If the SC environment variables SC_PLUGIN_PATH and SC_SYNTHDEF_PATH
are not set then CM attempts to set them using the values of
of *sc-synthdef-path*
and *sc-plugin-path*. The *scsynth*, *sc-plugin-path*
and *sc-synthdef-path* variables can be reset in a
~/.cminit.lisp initialization file.
Executes the shell command string *csound* and
passes it file and any of the following keyword values:
:orchestra orcfile :output sndfile;; Playing a MIDI file. (play "test.mid") ⇒ "test.mid" ;; Playing CLM score and audio files: (play "test.clm" :srate 44100 :output "foo.aiff" :channels 2) ⇒ "test.clm" (play "test.aiff" :start 4 :verbose #t) ⇒ "test.aiff" ;; Playing a Csound score file. (play "test.sco" :orchestra "beep.orc" :output "beep.aiff") ⇒ "test.sco"
events [Function]