<div dir="ltr">Yeah I think that would be a limitation that's unavoidable, because you're running at system clock rates vs audio clock rates. You'd have to spawn a new thread. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 17, 2020 at 10:40 AM Christof Ressi <<a href="mailto:info@christofressi.com">info@christofressi.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Try attached patch. Note that this works fine with pure DSP
objects, but it gives unexpected results once you add clocks (e.g.
[metro], [del], etc.).</p>
<p>Sending a "bang" to [switch~] only advances DSP computation for
the given canvas (and all its subcanvases), but it doesn't advance
the message scheduler (which is global).</p>
<p>With this method, you can basically amortized DSP computations
over a given period of time.<br>
</p>
<p>Christof<br>
</p>
<div>On 17.08.2020 19:27, Alexandre Torres
Porres wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Em seg., 17 de ago. de 2020
às 13:20, Christof Ressi <<a href="mailto:info@christofressi.com" target="_blank">info@christofressi.com</a>>
escreveu:</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>If your audio computation is pure DSP (i.e. no
messages), you can "render" it by repeatedly banging the
[switch~] object at any rate you like. Global DSP still
has to be on, but the canvas would be switched off.</p>
</div>
</blockquote>
<div><br>
</div>
<div>hmm, please elaborate;<br>
thanks</div>
</div>
</div>
</blockquote>
</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>