-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2015-02-25 18:23, Alexandre Torres Porres wrote:
I'm actually interested in knowing whether there's a signal connected to the inlet of an abstraction.
I need it so I can automatically switch between the argument loaded in the abstraction and whatever is going to that inlet from a signal connection.
But I guess it is kinda impossible to it in a patch... so it may be only possible as an external...
it is *not* possible with vanilla Pd (well, i haven't found a way yet).
however, iemguts provide the necessary objects to query connections (and their type) in a patch.
all of Pd's binops (e.g. [+~]) take an optional argument, and the type of the second inlet depends on the existance of this argument (ifthere is no argument, you get a signal inlet, if there is an argument you get a message inlet).
(why is your MUA using non-standard quotes?)
but is it possible to write an external with a different behaviour like I need?
i think you are asking the wrong question here: you are not at all interested in whether an object has a signal connected or not, but only whether you can provide a "default signal".
(but yes, it's obviously (as demonstrated by the iemguts functionality mentioned above) possible to write an external that knows about its own connections and behaves accordingly.)
fgamsdr IOhannes