[PD] variable outlets in dsp object

Pierre Guillot guillotpierre6 at gmail.com
Thu Jun 8 12:44:01 CEST 2017


Or even simpler this code:
https://github.com/pierreguillot/pd.dummies/blob/master/src/leeloo_tilde.c

2017-06-08 12:36 GMT+02:00 Pierre Guillot <guillotpierre6 at gmail.com>:

> I don't fully understand what you do in your code without the rest of it.
> I think the simplest approach is to keep all the DSP information you need
> in your object's structure(number of samples, pointers to the inlets,
> pointers to the outlets, etc.)  and to call the dsp routine with only your
> object structure as argument (and the perform method returns w+2). If you
> want an example, I made a vbap~ object that has variable number of inlets
> and outlets.
> Here the code: https://github.com/pierreguillot/vbap/blob/master/pd/
> src/vbap_tilde.c
> Cheers,
>
> Pierre
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170608/59c1de8f/attachment.html>


More information about the Pd-list mailing list