[CM] Snd + Jack, multiple file playback and recording
Bill Schottstaedt
bil at ccrma.Stanford.EDU
Thu Oct 29 14:14:14 PDT 2009
snd-rt is probably the right thing, but if you want to use Snd,
get the current tarball or CVS version (the stuff in the earlier
play.scm seems to be broken), and:
(bind-key #\o 0
(lambda () ; send oboe.snd to chan 0
(play "oboe.snd" 0 #f #f #f #f #f 0))) ; how many #f's??
(bind-key #\p 0
(lambda () ; send pistol.snd to chan 1
(play "pistol.snd" 0 #f #f #f #f #f 1)))
;;; Now open a sound (so you have a non-listener pane to type to)
(play #f 22050 2) ; srate 22050, 2 output chans
;;; this holds the DAC open indefinitely
;;; Now type o and p in the sound pane until you want to quit, then
(stop-playing)
More information about the Cmdist
mailing list