<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">If you want to work in the audio domain, consider calculating the RMS by simply squaring, low-passing, and taking the sqrt of the signal. The cutoff determines your averaging window.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">You can implement relational operators in the audio domain by using [/~], as the same signal connected to both of its inputs will give 0 when the signal is 0, and 1 otherwise. There was a nice conversation on the PD facebook group on this. Thanks to Matt Barber. </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">For example:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">[inlet~] [inlet~]</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">| \          |</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">|   \        |</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">|     \      |</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">|    [max~]</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">|     /</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">[-~   ]<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">|    \</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">[/~   ]</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">|</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">[outlet~]</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">is [<~].</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">You can then use a lowpass to slow down the transitions between true or false. The impulse response of [rpole~] will decrease of ~60dB (1/1024) in a desired time by setting the feedback coefficient B with B = .001^t/T60. t is the feedback period N/Fc and T60 is the decay time in sec. [rpole~] is an IIR but it will truncate to 0 when its output gets very small. Approximately, using the formula above, it will get to 0 after a desired time if you multiply the decay time by .158065.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Cheers,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">D</div><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 9 September 2016 at 07:47, enrike <span dir="ltr"><<a href="mailto:altern2@gmail.com" target="_blank">altern2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">thanks Jaime. I was checking fiddle~ and bonk~ but I guess env~ goes more to the point.<br>
<br>
og., 2016.eko iraren 08a 18:08(e)an, Jaime Oliver igorleak idatzi zuen:<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
env~ should help you do that.<br>
<br>
J<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On Sep 8, 2016, at 9:01 AM, enrike <<a href="mailto:altern2@gmail.com" target="_blank">altern2@gmail.com</a>> wrote:<br>
<br>
hi all<br>
<br>
is there any abstraction or external that allows to detect silence in the sound in? I mean if the amplitude drops below a threshold for a given period of time.<br>
<br>
I was thinking about how to get this going to try to build it myself then I thought there might be some external or abstraction that already does what I need. Tired of reinventing the wheel...<br>
<br>
thanks<br>
<br>
enrike<br>
<br>
______________________________<wbr>_________________<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/li<wbr>stinfo/pd-list</a><br>
</blockquote>
<br>
<br>
</blockquote>
<br>
<br>
______________________________<wbr>_________________<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/li<wbr>stinfo/pd-list</a><br>
</div></div></blockquote></div><br></div></div>