> Le 7 déc. 2018 à 18:19, Joshua Peschke <[email protected]> a écrit : > > hey stéphane, > nice! that sounds pretty much like what i need. are these primitives > available in the master-dev branch?
Yes.
> also i was wondering, is it possible to do something like this on block
> level? say i have a dynamic modulation system where the user can assign
> modulators to parameters, can i check somehow at the beginning of a block if
> the parameter is modulated and decide wether to multiply the parameter with
> the modulation signal in the current block or not? or is that what is
> referred to as “multirate”? i am suspecting that this is not possible without
> checking some condition at every sample, or doing it outside faust.
>
> thanks for all the tipps so far!
> best, josh
>
Look at the following example, the sine voices are computed according to the
slider value, and this decision is computed at block level:
import("stdfaust.lib");
// Additive synthesis generator that mutes unused voices
gen(N) = par(i, N, os.osc(200*(i+1)) : enable(hslider("oscillators",0,0,N,1) :
int : >(i))):> _ <: _,_;
process = gen(5);
But then the test to compute or not each sample is done inside the DSP loop
(which is still far from optimal, we still have work on that issue…):
faust -lang ocpp -svg test-enable-osc.dsp
test-enable-osc.dsp
Description: Binary data
Stéphane
_______________________________________________ Faudiostream-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/faudiostream-users
