Dear list, I wonder if anyone has a clue how to implement demand-rate in faust. I know this concept from the SuperCollider world, where specific Demand-rate UGens exist:
http://doc.sccode.org/Classes/Demand.html In SuperCollider, you'd write a UGen graph (similar to function composition in faust) built of special Demand-rate UGen: ``` // [...] SynthDef bookkeeping... var trig = Impulse.ar(10); // trigger for evaluation var seq = Drand([Dseq([23, 42], 1), Drand([10, 100, 1000], 8)], 2); Demand.ar(trig, 0, seq); // draw new value each time a trigger (0>>1) occurs ``` I wonder how to implement something like that in faust... It would allow to create pattern-like structures, e.g. to control macro-parameters, etc. I think I'll be able to wrap my head around resetting behaviour etc., My specific question is, how to implement a triggered evaluation for, say, an oscillator? ``` import("stdfaust.lib"); trig = os.imptrain(100); // trigger demand(source) = ...; // ??? process = trig : demand(os.osc(400)); ``` is this possible to do somehow? all the best Till _______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users