[PD-dev] help designing multichannel aware externals

Miller Puckette msp at ucsd.edu
Wed Jan 25 17:34:48 CET 2023


On Wed, Jan 25, 2023 at 05:22:14PM +0100, Christof Ressi wrote:
> > you'd just write
> >     signal_setchans(sp[2], ouchans).
> That's what I had originally suggested, but you rightfully pointed out that
> changing the channel number in place can be problematic if signals are
> reused...
> 
> So it would have to be at least:
> 
> sp[2] = signal_setchans(sp[2], outchans);
> 
> > empty output signals (channels=length=vec=0)
> But then what is the point of having the signal if it does not provide any
> information?
> 
you need it to know the length and sample rate (what nullsignal used to do :)






More information about the Pd-dev mailing list