[CM] adding an extra channel

e deleflie edeleflie@gmail.com
Tue, 12 Jun 2007 09:57:23 +1000


All,

I've got a situation where I read eiether 3 or 4 channel files, then
pump the channels through a LADSPA plugin.

the LADSPA plugin requires 4 channels. So when I read a 3 channel
file, I need to create a fourth, empty (no signal) channel.

I cant seem to find the command for creating a new channel.

something like this:

(let ((index (open-sound name)))
               ((if (= (channels 0) 3) (add-channel 0) ))

etienne