Hi all,
I guess subject says it all. For the sake of efficiency I am hoping to detect whether an inlet is connected to anything and if so to perform its signal-based operations. Otherwise, it should remain dormant. Is there anything in the existing API that allows for this?
Many thanks!
Ico
I suppose I am getting it wrong as usual but I thought signal objects only do computation when signals arrive at the inlets.
Martin
On 2010-12-27 05:10, Ivica Ico Bukvic wrote:
Hi all,
I guess subject says it all. For the sake of efficiency I am hoping to detect whether an inlet is connected to anything and if so to perform its signal-based operations. Otherwise, it should remain dormant. Is there anything in the existing API that allows for this?
Many thanks!
Ico
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
On Mon, 2010-12-27 at 11:31 -0500, Martin Peach wrote:
I suppose I am getting it wrong as usual but I thought signal objects only do computation when signals arrive at the inlets.
Martin
Not according to what I am getting when I create a bunch of phasor~ objects (unconnected to anything), start the dsp, open cpu load patch and then cut and paste said phasor~ objects. there is a noticeable dip in CPU utilization when they are cut.
Ico
Haha I knew I would be wrong! I've also noticed that some objects (my [sqosc~] especially) sometimes continue to make sound or distort the sound of other objects when they are disconnected, that [*~] on the output has no effect: some things just make no sense...
I guess I would use a flag that would be set if the object has ever received a message on that inlet, but I really have no idea what you're doing, so that's probably wrong too;)
Martin
On 2010-12-27 13:50, Ivica Ico Bukvic wrote:
On Mon, 2010-12-27 at 11:31 -0500, Martin Peach wrote:
I suppose I am getting it wrong as usual but I thought signal objects only do computation when signals arrive at the inlets.
Martin
Not according to what I am getting when I create a bunch of phasor~ objects (unconnected to anything), start the dsp, open cpu load patch and then cut and paste said phasor~ objects. there is a noticeable dip in CPU utilization when they are cut.
Ico