<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>
<blockquote type="cite"> How would I do this? Is it possible to
somehow check the volume that is going out to the outlets of a
clone?</blockquote>
Yes, but you need to use [send~]/[receive~] resp.
[throw~]/[catch~], so can analyze a specific output and not the
sum of all outputs. A simple way is to check the output of [env~].
The blocksize can be very short (e.g. 64 samples) and you don't
need overlap. Of course, the silence/signal detection has to
happen outside the actual subpatch, because DSP must be running.</p>
<p>There is one problem, though: if the input signal has pauses, the
processed signal might have pauses too, so must not switch off
immediately, but only after a certain amount of silent blocks in a
row. This technique of avoiding rapid state changes is called
"debouncing". You can schedule the switch off with [delay] and
send a [stop( message if a block is not silent. The delay time
should correspond to the max. number of samples until the plugin
output becomes silent (= "tail size").<br>
</p>
<p>Actually, VST plugins often employ this technique to save CPU.
For many VST2 and VST3 plugins, the host can ask the plugin for
its "tail size", so it knows when it can stop processing. VST3
plugins also have a "silence flag" for each channel which can be
set by the host, so the plugin itself can suspend processing if
appropriate.</p>
<p>On the other hand, some people argue that the system must be able
to handle the max. number of effects anyway, and if you run all
effects all the time and the CPU can manage it, you won't get any
surprises. Of course, the big disadvantage is that the system uses
more power than necessary most of the time.<br>
</p>
<p>Christof<br>
</p>
<div class="moz-cite-prefix">On 11.07.2020 18:55, Jakob Laue wrote:<br>
</div>
<blockquote type="cite"
cite="mid:trinity-e701f28c-ffa7-46f6-a0a6-80b31bff8dcc-1594486556982@3c-app-webde-bs10">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Hi!</div>
<div>So, I was thinking about Dan's advice to turn the dsp on
and off with [switch]. I will definitely need this feature for
saving CPU.</div>
<div>Currently I am wondering which is the proper condition on
that I decide to [switch] a clone off.</div>
<div>Let me explain with an example:</div>
<div>Say I have 10 button matrices, therefore I have 10 clones
of my delay-effect. Each clone the delay-effect for one
specific button matrix. When the user is playing a melody on
the first button matrix and then switches to the second
matrix, I am not allowed to [switch] off the delay effect on
the first matrix, because even if the first matrix might not
be triggering new midi notes anymore, the delay effect might
be set to feedback = 100, an thus is still playing music.</div>
<div> </div>
<div>So my first idea was to switch off the delay effect,
when dryWet and feedback are set to zero. But then I would
also have to check wether or not there is music coming in on
the inlets off the delay effect...And what if I am not using a
delay but a reverb effect. Then I would have to check
different sliders...a little bit confusing i would say.</div>
<div> </div>
<div>So then I had another idea: Couldn't I simply check
(periodically) whether or not a delay-effect-clone is still
sending audio to its outlets? I think that this would be a
good general approach that could be applied to other effects,
as well. How would I do this? Is it possible to somehow check
the volume that is going out to the outlets of a clone?</div>
<div> </div>
<div>Best, Jakob</div>
<div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding:
10px 0 10px 10px; border-left:2px solid #C3D9E5;
word-wrap: break-word; -webkit-nbsp-mode: space;
-webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Mittwoch,
01. Juli 2020 um 12:30 Uhr<br>
<b>Von:</b> "Dan Wilcox" <a class="moz-txt-link-rfc2396E" href="mailto:danomatika@gmail.com"><danomatika@gmail.com></a><br>
<b>An:</b> "Jakob Laue" <a class="moz-txt-link-rfc2396E" href="mailto:jakkesprinter@web.de"><jakkesprinter@web.de></a><br>
<b>Cc:</b> "Pd-List" <a class="moz-txt-link-rfc2396E" href="mailto:pd-list@lists.iem.at"><pd-list@lists.iem.at></a><br>
<b>Betreff:</b> Re: [PD] one abstraction, different
delay lines?</div>
<div name="quoted-content">
<div>
<div>(My mail program mangled this message for some
reason, so I copy/pasted the quote below. I hope
it's the correct one to respond to...)</div>
<blockquote><span style="font-family:
monospace;font-size: medium;">Right now I have the master audio stream (= the audio of all matrices) going into the clone object, so it sounds like i have several delay effects with different settings on the master channel. It sounds nice, but it is not what I want right now:)</span></blockquote>
<div> </div>
<div><font size="3" face="monospace">Jakob, the next
step would be to add a [switch~] object to each of
the instances inside the clone object, then
enable/disable based which one you want to use.
That could work as dsp will not be performed on
those which are switched off, saving CPU.</font></div>
<div> </div>
<div><font size="3" face="monospace">A simple solution
is for each instance to accept an "on" message
with a float (1 or 0) to enable/disable. Then to
enable as ingle one, send a [all on 0< message
followed by the single one to enable, [1 on 1<.</font></div>
<div>
<div>
<blockquote>
<div>On Jul 1, 2020, at 12:00 PM, <a
href="mailto:pd-list-request@lists.iem.at"
onclick="parent.window.location.href='mailto:pd-list-request@lists.iem.at';
return false;" target="_blank"
moz-do-not-send="true">pd-list-request@lists.iem.at</a>
wrote:</div>
<div><span style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;float: none;display: inline;">Message:
1</span><br style="font-family:
Monaco;font-size: 12.0px;font-style:
normal;font-weight: normal;letter-spacing:
normal;text-indent: 0.0px;text-transform:
none;white-space: normal;word-spacing:
0.0px;text-decoration: none;">
<span style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;float: none;display: inline;">Date:
Tue, 30 Jun 2020 13:31:57 +0200</span><br
style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;">
<span style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;float: none;display: inline;">From:
Jakob Laue <</span><a
href="mailto:jakkesprinter@web.de"
onclick="parent.window.location.href='mailto:jakkesprinter@web.de';
return false;" style="font-family:
Monaco;font-size: 12.0px;font-style:
normal;font-weight: normal;letter-spacing:
normal;text-indent: 0.0px;text-transform:
none;white-space: normal;word-spacing:
0.0px;" target="_blank"
moz-do-not-send="true">jakkesprinter@web.de</a><span
style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;float: none;display: inline;">></span><br
style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;">
<span style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;float: none;display: inline;">To:
Christof Ressi <</span><a
href="mailto:info@christofressi.com"
onclick="parent.window.location.href='mailto:info@christofressi.com';
return false;" style="font-family:
Monaco;font-size: 12.0px;font-style:
normal;font-weight: normal;letter-spacing:
normal;text-indent: 0.0px;text-transform:
none;white-space: normal;word-spacing:
0.0px;" target="_blank"
moz-do-not-send="true">info@christofressi.com</a><span
style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;float: none;display: inline;">></span><br
style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;">
<span style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;float: none;display: inline;">Cc:
Pd-List <</span><a
href="mailto:pd-list@lists.iem.at"
onclick="parent.window.location.href='mailto:pd-list@lists.iem.at';
return false;" style="font-family:
Monaco;font-size: 12.0px;font-style:
normal;font-weight: normal;letter-spacing:
normal;text-indent: 0.0px;text-transform:
none;white-space: normal;word-spacing:
0.0px;" target="_blank"
moz-do-not-send="true">pd-list@lists.iem.at</a><span
style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;float: none;display: inline;">></span><br
style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;">
<span style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;float: none;display: inline;">Subject:
Re: [PD] one abstraction, different delay
lines?</span><br style="font-family:
Monaco;font-size: 12.0px;font-style:
normal;font-weight: normal;letter-spacing:
normal;text-indent: 0.0px;text-transform:
none;white-space: normal;word-spacing:
0.0px;text-decoration: none;">
<span style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;float: none;display: inline;">Message-ID:</span><br
style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;">
<span style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;float: none;display: inline;"><trinity-6b0b8585-789d-4804-8ea8-2e84792187b9-1593516717310@3c-app-webde-bap20></span><br
style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;">
<br style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;">
<span style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;float: none;display: inline;">Content-Type:
text/plain; charset="utf-8"</span><br
style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;">
<br style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;">
<span style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;float: none;display: inline;">An HTML
attachment was scrubbed...</span><br
style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;">
<span style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;float: none;display: inline;">URL: <</span><a
href="http://lists.puredata.info/pipermail/pd-list/attachments/20200630/9648c0c4/attachment-0001.html"
style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;" target="_blank"
moz-do-not-send="true">http://lists.puredata.info/pipermail/pd-list/attachments/20200630/9648c0c4/attachment-0001.html</a><span
style="font-family: Monaco;font-size:
12.0px;font-style: normal;font-weight:
normal;letter-spacing: normal;text-indent:
0.0px;text-transform: none;white-space:
normal;word-spacing: 0.0px;text-decoration:
none;float: none;display: inline;">></span></div>
</blockquote>
</div>
<div>
<div style="color: rgb(0,0,0);font-family:
Helvetica;font-size: 12.0px;font-style:
normal;font-weight: normal;letter-spacing:
normal;text-indent: 0.0px;text-transform:
none;white-space: normal;word-spacing: 0.0px;">--------</div>
<div style="color: rgb(0,0,0);font-family:
Helvetica;font-size: 12.0px;font-style:
normal;font-weight: normal;letter-spacing:
normal;text-indent: 0.0px;text-transform:
none;white-space: normal;word-spacing: 0.0px;">Dan
Wilcox</div>
<div style="color: rgb(0,0,0);font-family:
Helvetica;font-size: 12.0px;font-style:
normal;font-weight: normal;letter-spacing:
normal;text-indent: 0.0px;text-transform:
none;white-space: normal;word-spacing: 0.0px;"><a
href="http://twitter.com/danomatika"
target="_blank" moz-do-not-send="true">@danomatika</a></div>
<div style="color: rgb(0,0,0);font-family:
Helvetica;font-size: 12.0px;font-style:
normal;font-weight: normal;letter-spacing:
normal;text-indent: 0.0px;text-transform:
none;white-space: normal;word-spacing: 0.0px;"><a
href="http://danomatika.com" target="_blank"
moz-do-not-send="true">danomatika.com</a></div>
<div style="color: rgb(0,0,0);font-family:
Helvetica;font-size: 12.0px;font-style:
normal;font-weight: normal;letter-spacing:
normal;text-indent: 0.0px;text-transform:
none;white-space: normal;word-spacing: 0.0px;"><a
href="http://robotcowboy.com" target="_blank"
moz-do-not-send="true">robotcowboy.com</a></div>
<div style="color: rgb(0,0,0);font-family:
Helvetica;font-size: 12.0px;font-style:
normal;font-weight: normal;letter-spacing:
normal;text-indent: 0.0px;text-transform:
none;white-space: normal;word-spacing: 0.0px;"> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
</blockquote>
</body>
</html>