<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Superb, works like a charm.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Many thanks Alexandre,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
josep m</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Alexandre Torres Porres <porres@gmail.com><br>
<b>Sent:</b> Sunday, April 4, 2021 3:38 AM<br>
<b>To:</b> Jeppi Jeppi <jeppiot@hotmail.com><br>
<b>Cc:</b> pd-list@lists.iem.at <pd-list@lists.iem.at><br>
<b>Subject:</b> Re: [PD] is inlet~ connected?</font>
<div> </div>
</div>
<div>
<div dir="ltr">here's my trick
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>cheers</div>
<div><br>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">Em sáb., 3 de abr. de 2021 às 10:29, Jeppi Jeppi <<a href="mailto:jeppiot@hotmail.com">jeppiot@hotmail.com</a>> escreveu:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi all,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
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? </div>
</div>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">
https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote>
</div>
</div>
</body>
</html>