-
Dseq: Filter: Description Class methods new Inherited class methods Instance methods Inherited instance methods Examples Classes | UGens > Demand'>Demand Dseq : ListDUGen : DUGen : UGen : AbstractFunction : Object Demand rate sequence gener ...
-
... n = 2, trig = Impulse.kr(MouseX.kr(4, 100, 1)); a = Dfsm([ [0], // entry states Dseq([-2, -3], inf), [1], Dseq([1, 2, 1.5], inf), [0, 0, 0, 1, 2], Dseq([4, 5, 3], inf) // exit state ], n); b = Demand.kr(trig, 0, a).poll(trig); SinOsc.ar(b * ...
-
... q; freq = Duty.kr( Drand([0.01, 0.2, 0.4], inf), // demand ugen as durations 0, Dseq([204, 400, 201, 502, 300, 200], inf) ); SinOsc.ar(freq * [1, 1.01]) * 0.1 }.play; ) ( { var freq; freq = Duty.kr( MouseX.kr(0.001, 2, 1), // control rate u ...
-
... 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 ...
-
... 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. ...
-
... thods Examples ( { 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; ); // comp ...
-
... ; b.getn(0, b.numFrames, { |x| x.postln }) ( { var indexPattern; indexPattern = Dseq([Dseq([0, 3, 5, 0, 3, 7, 0, 5, 9], 3), Dbrown(0, 23, 1, 5)], inf); SinOsc.ar( Demand.kr(Dust.kr(10), 0, Dbufrd(b, indexPattern)) ) * 0.1 }.play; ) // buffe ...
-
... nstance methods Examples // examples s.boot; // play a little rhythm { TDuty.ar(Dseq([0.1, 0.2, 0.4, 0.3], inf)) }.play; // demand ugen as durations // amplitude changes ( { var trig; trig = TDuty.ar( Dseq([0.1, 0.2, 0.4, 0.3], inf), // dem ...
-
... eroXBufRd should always use inf as repeats arg x = { ZeroXBufRd.ar(b, z, zeroX: Dseq([1, 2], inf)) }.play x.release // Note that the distance between zero crossings can be very short, // here the half waveset at index 5 (735-740) has a leng ...
-
... = { TZeroXBufRd.ar( b, z, trig: Impulse.ar(MouseX.kr(10, ~maxTrigRate)), zeroX: Dseq([2, 3], inf), rate: 0.2 ) * 0.1 }.play ) s.scope x.release // In this example waveforms are slightly crossing the x axis. // This comes from the fact that ...