Superb, works like a charm.
Many thanks Alexandre,
josep m
________________________________
From: Alexandre Torres Porres <[email protected]>
Sent: Sunday, April 4, 2021 3:38 AM
To: Jeppi Jeppi <[email protected]>
Cc: [email protected] <[email protected]>
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 
<[email protected]<mailto:[email protected]>> 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?
_______________________________________________
[email protected]<mailto:[email protected]> mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to