Hi,
I would like to know the inlets and outlets which are connected to my object. This information could be useful in the dsp method. Thanks
Pierre
Hi Pierre,
The inlets and outlets aren't accessible to the dsp method directly, but maybe there's a work-around. The dsp method of an instance takes as argument: its struct, and an array of pointers.
What information do you want to have and would you like to do?
Chuck
On Tue, Nov 19, 2013 at 10:26 AM, Pierre Guillot guillotpierre6@gmail.comwrote:
Hi,
I would like to know the inlets and outlets which are connected to my object. This information could be useful in the dsp method. Thanks
Pierre
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Yes I know. I've try something with the line traverser but it doesn't work... There's must be a solution. It's for my project https://github.com/pierreguillot/PdEnhanced so there 's no necessity for now. But if you want to create a phasor and to be able to control the phase or the frequency with a signal, you need to know if it is the inlet 1 or the inlet 2 which is connected (dummy example). So you should need something like a vector of booleans (1 for connected and 0 for disconnected).
2013/11/19 Charles Z Henry czhenry@gmail.com
Hi Pierre,
The inlets and outlets aren't accessible to the dsp method directly, but maybe there's a work-around. The dsp method of an instance takes as argument: its struct, and an array of pointers.
What information do you want to have and would you like to do?
Chuck
On Tue, Nov 19, 2013 at 10:26 AM, Pierre Guillot <guillotpierre6@gmail.com
wrote:
Hi,
I would like to know the inlets and outlets which are connected to my object. This information could be useful in the dsp method. Thanks
Pierre
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
On 2013-11-19 17:26, Pierre Guillot wrote:
Hi,
I would like to know the inlets and outlets which are connected to my object.
check [canvasconnections] in iemguts.
This information could be useful in the dsp method.
hmm. in general i would say that your object design is somewhat broken if you use the connection information in your dsp method.
fgmdsar IOhannes