[LV2] Still Learning
profwub at gmail.com
Wed Dec 25 10:08:00 PST 2013
On Wed, Dec 25, 2013 at 10:11 AM, David Robillard <d at drobilla.net> wrote:
> On Wed, 2013-12-25 at 08:54 -0500, Warren Koontz wrote:
> > All,
> > Please check my understanding:
> > In an activate-run-deactivate cycle (where run may be invoked more than
> > once) do the control variables remain fixed or can they change from one
> > invocation of run to the next? I now suspect the latter, which means I
> > to change my approach.
> Yes, control inputs may change value while running. That is their main
> > In my current version of Multiverb, the number of buffers and their sizes
> > are determined from two user inputs: "order" and "maxDelay". I think it
> > would be awkward to change these on the fly. Also, I calculate a number
> > parameters (e.g., inverse dB) from the control variables. These would
> > to be re-computed whenever run is invoked.
> Yes, calculating things based on changing parameters is tricky.
> > So I think I have to make the number of buffers and their sizes a "design
> > decision" and determine a reasonably efficient way to use the remaining
> > control variables. Also, I can use activate to clear the buffers, since
> > number and sizes will be fixed at build time.
> This sound reasonable. If you want to be fancy and dynamic you can use
> the worker extension (or, less ideally, a homebrew thread solution) to
> allocate buffers and whatnot when the relevant controls change, but then
> you have to deal with multi-threading.
> Ah, holiday LAD hacking :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel