<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
The first requirement is tricky, it's very rare you'll get amplitude 0 (or, more accurately, minus infinity) from an active input, I'd suggest [env~] and [&lt;] with a number to define tolerance, it's a tricky business, however. <br><br>Delay wise you could always use the classic delay-repeat model which is something like<br><br><br>(sound source)&nbsp; [r~ feedback]<br>&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /<br>[delwrite~ delayname 1000]<br><br>[delread~ delayname 1000]<br>&nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \ <br>[dac~]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [*~ 0.4]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [s~ feedback]<br><br>which will basically echo to silence<br><br>Or you could try a more controlled example which would be something like<br><br>(sound source)<br>|<br>[delwrite~ del1 1000]<br><br>[delread~ del1 1000]<br>| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \<br>[*~ .5]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [dac~]<br>|<br>[delwrite~ del2 500]<br><br>[delread~ del2 500] <br>|<br>[dac~]<br><br>which would mean the echoes get quieter and closer together. You could carry on this chain as long as you want, modifying each echo in the chain to your own specification.<br><br>I'm not sure how helpful this is, but it might be what you're after.<br><br>Andrew<br><br><hr id="stopSpelling">Date: Mon, 28 Mar 2011 10:26:09 +0200<br>From: pimassat@gmail.com<br>To: stefan.magnusson@gmail.com<br>CC: pd-list@iem.at<br>Subject: Re: [PD] Echo-effect<br><br>So you don't want the original sound and the echo to overlap? Then the question is : how do you define silence? Do you have a reliable means of knowing for sure when silence begins? In my experience you can never get an amplitude of 0 in a sound originating from a microphone. If you can manage to know exactly when silence starts, then i think you could achieve what you want by using a single delay line. I would feed the delay line (delwrite~) with the incoming sound continuously, and i would switch off the output of the line (delread~, use *~ 0 after it to switch it off). The length of the delay would be constant and equal to 1600 ms. The feedback level XX (use *~ XX between the output of delread and the input of delwrite) would be equal to 0 when the delay is off (so that you only get the last 1,6 seconds of sound when you switch it on). Then everytime you detect silence you wait for 0,8 seconds and you send messages to both the output switch (ramp up from 0 to 1) and the feedback (ramp from 0 to whatever suits your needs). Also, i would turn the delay off automatically after a fixed period of time (depending on the feedback level) to make sure that the echo will be off when a new sound occurs.<br>
Hope this helps...<br><br>Pierre<br><br><div class="ecxgmail_quote">2011/3/28 Stefan Magnusson <span dir="ltr">&lt;<a href="mailto:stefan.magnusson@gmail.com">stefan.magnusson@gmail.com</a>&gt;</span><br><blockquote class="ecxgmail_quote" style="padding-left: 1ex;">
Hi!<div><br></div><div>I only want the effect to kick in after a certain amount of silence (where silence is defined as amplitude zero) so that does not&nbsp;interferer when there is&nbsp;continuous sound. Clear enough?</div><div><br>

</div><div>/Stefan&nbsp;&nbsp;<div class="ecxim"><br><br><div class="ecxgmail_quote">On Mon, Mar 28, 2011 at 10:02 AM, Pierre Massat <span dir="ltr">&lt;<a href="mailto:pimassat@gmail.com">pimassat@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="ecxgmail_quote" style="padding-left: 1ex;">
Hi Stefan,<br><br>I'm sorry i didn't get your first requirement "Starts when there has been no sound for 0,8 seconds". Could you be a little more specific?<br><br>If you need to have a strong control over the echo i think you should probably use tables instead of delay lines, because you can write and read to an from a table at any moment and at any point in the table.<br>


<br>Pierre<br><br><div class="ecxgmail_quote"><div><div></div></div><blockquote class="ecxgmail_quote" style="padding-left: 1ex;"><br><br>
<br></blockquote></div><br>
</blockquote></div><br></div></div>
</blockquote></div><br>
<br>_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -&gt; http://lists.puredata.info/listinfo/pd-list                                               </body>
</html>