Superb, works like a charm. Many thanks Alexandre, josep m ________________________________ From: Alexandre Torres Porres porres@gmail.com Sent: Sunday, April 4, 2021 3:38 AM To: Jeppi Jeppi jeppiot@hotmail.com Cc: pd-list@lists.iem.at pd-list@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.
cheers
Em sáb., 3 de abr. de 2021 às 10:29, Jeppi Jeppi <jeppiot@hotmail.commailto:jeppiot@hotmail.com> escreveu: Hi all, 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@lists.iem.atmailto:Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list