-
Dseq demand rate sequence generator superclass: ListDUGen *new(array, length) array array of values or other ugens length number of repeats structurally related: Pseq see also: Demand // example ( { var a, freq, trig; a = Dseq ([1, 3, 2, 7, ...
-
... To isolate a demand ugen, use a function: { var a, b, t = Impulse.kr(2); a = { Dseq([1, 2, 3, 4, 5], inf) } * 100; b = a + 1; Demand.kr(t, 0, [a, b]).poll(t) }.play ⧉ ✔ Inherited class methods Instance Methods Inherited instance methods Ex ...
-
... nvGen.ar(Env.linen(0.0001,tL,10),doneAction:2); var src1Env = DemandEnvGen.ar(Dseq([0,0.25,1,0.25],inf),Dseq(src1Tim,1),5,-4); var src2Env = DemandEnvGen.ar(Dseq([0,0.25,1,0.25],inf),Dseq(src2Tim,1),5,-4); var src3Env = DemandEnvGen.a ...
-
... // frequency envelope with random times ( { var freq; freq = DemandEnvGen .ar( Dseq ([204, 400, 201, 502, 300, 200], inf ), Drand ([1.01, 0.2, 0.1, 2], inf ) * MouseY .kr(0.01, 3, 1), 7 // cubic interpolation ); SinOsc .ar(freq * [1, 1.01] ...
-
... // example ( { var d, trig; d = Dswitch ([ Dwhite (3, 4, 2), Dwhite (0, 1, 2), Dseq ([1, 1, 1, 0], 2) ], Dseq ([0, 1, 2, 1, 0], 2)); trig = Impulse .kr(4); SinOsc .ar( Demand .kr(trig, 0, d).poll(trig) * 300 + 400 ) * 0.1 ! 2 }.play; ); // ...
-
... = { var trig, seq; trig = Impulse.kr(6); seq = Drand([ Dseq([4,0,0,1,Drand([1,4]),1,0,1]), Dseq([1,0,2,0,Drand([0,1,4]),0,1,1]), Dseq([4,0,0,2,Drand([1,2,4]),0,1,1]), Dseq([4,0,1,2,Drand([ ...
-
... s // frequency envelope with random times ( { var freq; freq = DemandEnvGen.ar( Dseq([204, 400, 201, 502, 300, 200], inf), Drand([1.01, 0.2, 0.1, 2], inf) * MouseY.kr(0.01, 3, 1), 7 // cubic interpolation ); SinOsc.ar(freq * [1, 1.01]) * 0. ...
-
... ir2, lastDir, lastIndex, writeDir, writeIndex, dirChange, initZero; dirFunc = { Dseq((startDir.sign > 0).if { [1, -1] }{ [-1, 1] }, inf) }; withDirs = [0, false].includes(withDirs).not; withDirs.if { steps1 = Dunique(stepsPerDir, dUniqueBuf ...
-
... first approach... ( x.free; x = { var note = Duty.kr( 6/3.2, 0, Dseq([45, 45, 48, 41], inf)); var snd = Saw.ar(note.midicps * SinOsc.kr(7.421).range(0.998, 1.001)) * -12.dbamp!2; var trigs = TDuty.kr( Dseq([1, 2, 3]/3 ...
-
... les.size] ++ axiom ++ rules.collect(_.size) ++ rules.flatten(1) } allSymbols { ^Dseq([ Dseq(axiom), Dswitch(rules.collect { |x| Dseq(x) }, this) ]) } } Dtag : DbufTag { *new { arg bufsize, v, axiom, rules, recycle=0, mode=0; ^this.multiNewL ...