<div dir="ltr">Thanks!</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 25, 2013 at 10:11 AM, David Robillard <span dir="ltr"><<a href="mailto:d@drobilla.net" target="_blank">d@drobilla.net</a>></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 Wed, 2013-12-25 at 08:54 -0500, Warren Koontz wrote:<br>
> All,<br>
><br>
> Please check my understanding:<br>
><br>
> In an activate-run-deactivate cycle (where run may be invoked more than<br>
> once) do the control variables remain fixed or can they change from one<br>
> invocation of run to the next? I now suspect the latter, which means I have<br>
> to change my approach.<br>
<br>
</div>Yes, control inputs may change value while running.  That is their main<br>
purpose.<br>
<div class="im"><br>
> In my current version of Multiverb, the number of buffers and their sizes<br>
> are determined from two user inputs: "order" and "maxDelay". I think it<br>
> would be awkward to change these on the fly. Also, I calculate a number of<br>
> parameters (e.g., inverse dB) from the control variables. These would have<br>
> to be re-computed whenever run is invoked.<br>
<br>
</div>Yes, calculating things based on changing parameters is tricky.<br>
<div class="im"><br>
> So I think I have to make the number of buffers and their sizes a "design<br>
> decision" and determine a reasonably efficient way to use the remaining<br>
> control variables. Also, I can use activate to clear the buffers, since the<br>
> number and sizes will be fixed at build time.<br>
<br>
</div>This sound reasonable.  If you want to be fancy and dynamic you can use<br>
the worker extension (or, less ideally, a homebrew thread solution) to<br>
allocate buffers and whatnot when the relevant controls change, but then<br>
you have to deal with multi-threading.<br>
<br>
Ah, holiday LAD hacking :)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
dr<br>
<br>
<br>
</font></span></blockquote></div><br></div>