[PD-dev] help designing multichannel aware externals
IOhannes m zmoelnig
zmoelnig at iem.at
Tue Jan 24 08:07:22 CET 2023
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20230124/4c7ae74a/attachment.sig>
More information about the Pd-dev
mailing list