[PD] knowing if there's anything connected to an [inlet~] in a subpatch or abstraction

IOhannes m zmoelnig zmoelnig at iem.at
Thu Feb 26 09:24:00 CET 2015


-----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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJU7tgWAAoJELZQGcR/ejb4MlQP/RvB86IauhI/lR7m2R4q+c0g
tVYao6jlCzatZrWQFJSerfem/qsM1dCBjAJc9fBb2WpsGLdVbyt8sTAKbcMw9uLM
OL0fZGXW6M+XJxYdW086rYPD3L5uLBcYG81UtiQEERuxPWTl/JgN7Ch2eYNt9K81
Kw3qfUEyzpoZSv51VXiLfewRtG1RnqXUYG4/gjT+W/3pSqq8VmCwchIAH3KcwUh4
gNUiIkqL6ta5DOpHQqmi9WItOzxJcS3HO1B64o3DcPXn2nFeYuBkIo1tw9MVBdtn
Sczt9IZ84LQie45s4XHhn719aCIdhrkBHApHPQqs/0Zm1R1s9OWpxlEIuKFPDudu
mRJw9vqS1FMm0q1b2EuVzaOPFlgNNraRKyaGpBYwWgEJP2VRNFoYQlcC7g1Sprii
a98nhWR/q+H7AA/qVD/c3YfATCkUfOl4fYoz7I4rtS37+rMHrEiviu36Bn3UCJ14
BbPR+d4u3vsRB9DHU4RU/ztxBYMTci/dtPrYMGqy3eByl/N9VJfnx4dZ9LSKdGle
rIIFqDhFiFPaZoIezaNR2XXWlTEP/C1u8RQaa9TzdZgSvdPYDlEgAVo4t1rZL3xA
VQ8q/Qm+R8TJrg3IqhlBsyBGdX7/z3oeQpCI2OHuwX2WiOf8bzn8lKwKLzpOcNNs
1bA/w52usJGGGlDXPYe5
=7XYm
-----END PGP SIGNATURE-----



More information about the Pd-list mailing list