I made this little helper abstraction for dealing with fades/switches at the same time. You can specify the ramp up/down time and even add a delay before sending the ramp. I find it use it everywhere now. <div><br></div><div>

Maybe someone will find it useful</div><div><br></div><div>Cheers,</div><div>Joe<br><br><div class="gmail_quote">On 5 May 2013 20:48, Roman Haefeli <span dir="ltr">&lt;<a href="mailto:reduzent@gmail.com" target="_blank">reduzent@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Son, 2013-05-05 at 12:42 -0400, Dan Wilcox wrote:<br>
&gt; Even though you don&#39;t have audio coming out when you&#39;re muting, you&#39;re<br>
&gt; still doing dsp. You should put each channel in a sub patch or<br>
&gt; abstraction and use [switch~] to enable/disable that abstraction. This<br>
&gt; is super important with low resource machines. The best fix is to do a<br>
&gt; quick (10-5ms) fade in/out when muting/unmuting, then hit [switch~] so<br>
&gt; you don&#39;t get any clicks:<br>
<br>
</div>this part:<br>
<br>
<br>
[unpack f f]<br>
|        /<br>
[del     ]<br>
|<br>
[switch~]<br>
<br>
<br>
is most likely not doing what you are expecting it to do.  A [delay]<br>
outputs only bangs and no numbers. [switch~ ], however, will only<br>
compute one block when banged.<br>
<br>
Also the [unpack]-[del] combination is weird as it first sets the delay<br>
time to 5 and then immediately to 1 or 0 (depending on which message got<br>
banged). Also, you don&#39;t want to apply the delay to both messages. When<br>
fading in, computation must be already turned on. The delay is only<br>
required for the fade-out.<br>
<br>
I modified slightly to what I think you meant to do.<br>
<span class="HOEnZb"><font color="#888888"><br>
Roman<br>
<br>
<br>
<br>
<br>
<br>
</font></span><br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Follow me on Twitter @diplojocus
</div>