[PD] is inlet~ connected?
jeppiot at hotmail.com
Sun Apr 4 11:52:39 CEST 2021
Superb, works like a charm.
Many thanks Alexandre,
From: Alexandre Torres Porres <porres at gmail.com>
Sent: Sunday, April 4, 2021 3:38 AM
To: Jeppi Jeppi <jeppiot at hotmail.com>
Cc: pd-list at lists.iem.at <pd-list at lists.iem.at>
Subject: Re: [PD] is inlet~ connected?
here's my trick
inlet~ has an inlet to set a default value when a signal is not connected, so give it a weird and unexpected value and then check if that value is output.
I do that for else/out~ where it distributes the left input to both speakers if no signal is connected to the right input. Clearly, checking for "0" was no good.
Em sáb., 3 de abr. de 2021 às 10:29, Jeppi Jeppi <jeppiot at hotmail.com<mailto:jeppiot at hotmail.com>> escreveu:
I came across a weird requirement and I think it is not possible...but maybe you have a creative workaround: is there a way to know whether an inlet~ is actually connected or whether an inlet~ is or not receiving audio data?
Pd-list at lists.iem.at<mailto:Pd-list at lists.iem.at> mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pd-list