[CM] Snd + Jack, multiple file playback and recording

errordeveloper at gmail.com errordeveloper at gmail.com
Thu Nov 5 15:02:43 PST 2009

On Thu, Oct 29, 2009 at 02:14:14PM -0700, Bill Schottstaedt wrote:
> 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) 

i would like to actually do it without the GUI.
the idea is about building an embedded linux box with a micro-controller
on a serial port.

so after opening a port and evaluating the input strings as commands
(i haven't figured how to do that exactly, but should be easily doable)
i want to run some procs that will play files assigned to the outputs of
the soundcards.
the box would be a harddrive recorder basically ;)
i might use digital multichannel interface for audio IO.

i would need to be able to patch some channels in jack and record the
output back into snd.
so say i got 8 channels and 6 off them i'd like to play while the other
two will pass trough an external FX via jack and record the two
processed chans back into snd.

More information about the Cmdist mailing list