[PD-dev] help designing multichannel aware externals
Miller Puckette
msp at ucsd.edu
Wed Jan 25 05:46:13 CET 2023
OK, just now changed this - there's a one-channel signal created for all
signal outputs. Now if you want more than one channel you have to call
signal_swapforchans() (see d_arithmentic for example).
cheers
M
On Tue, Jan 24, 2023 at 08:07:22AM +0100, IOhannes m zmoelnig wrote:
> On 1/24/23 04:54, Alexandre Torres Porres wrote:
> > Em seg., 23 de jan. de 2023 às 14:34, IOhannes m zmoelnig <zmoelnig at iem.at>
> > escreveu:
> >
> > > multichannel objects must create the output signals themselves.
> > > (as the object might change the number of channels).
> > >
> >
> > even with [nchs~] where I'd have a fixed number of inputs/outputs?
>
> yes.
> with all multichannel aware externals.
> how would Pd know the fixed number of outputs, if you don't tell it?
>
> >
> >
> > > see the example (mostly: pack~)
> > >
> >
> > I saw it and it's quite simple, withou a 'perform' routine it uses a copy
> > function.
>
> the interesting part is the "dsp" method.
> you cannot change the number of output signals in the perform routine (that
> is: every tick).
> but you can change (or rather: must set) it when the DSP-graph is created,
> thus in the "dsp" method.
>
>
> mgfdsrfad
> IOhannes
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at lists.iem.at
> https://lists.puredata.info/listinfo/pd-dev
More information about the Pd-dev
mailing list