-
... grouping is just the remainder of the pattern (in this case [3]). x = Pclump(2, Pseq([1, 2, 3], 1)).asStream; x.next; x.next; x.next; ⧉ ✔ Play some random chords: Pbind( \degree, Pclump(Pseq([3, 3, 4, 2, 4, 2, 4], inf), Pseq([1, 3, 5, 7, 9] ...
-
... ndow Inherited instance methods Examples a= RedEffectsRack(); b= Pbind(\degree, Pseq([0, 1, 5, 4, 3, 4], inf), \dur, 0.25).play; c= RedEffectsRackGUI(a); a.ringMix= 0.5; a.free; b.stop; c.close; a= RedEffectsRack([RedEfxRing, RedEfxDelp, Re ...
-
... es(0, 1, 12) hypot: Pseries(3, -1, 12); a.asStream.all; ) // some common cases: Pseq([1, 2, 3]) + 2; Pseq([1, 2, 3]) / Pseq([3, 4, 5, 6]); max(Pwhite(-10, 10, inf), Pseq([0, 2, 3, 4])); ⧉ ✔ // sound example ( SynthDef(\help_sinegrain, { |ou ...
-
... (20, 40, 0); //stereo inputs on 20 and 40, stereo output on 0 b= Pbind(\degree, Pseq([0, 1, 5, 4, 3], inf), \dur, 0.25, \pan, Pseq([-1, 1], inf), \out, 20).play; c= Pbind(\degree, Pseq([10, 11, 16, 15], inf), \dur, 0.25, \pan, Pseq([-1, 1], ...
-
... (\z, Pdefn(\y) * 2); ( Pdef(\play, Pbind( \instrument, \gpdef, \harmonic, Pnsym(Pseq([\x, \x, Prand([\x, \y]), [\z, \y], \y], inf)).trace, \dur, 0.2, \note, 10 ) ).play; ) // change root pattern: Pdefn(\x, Pn(2, 3)); Pdefn(\x, Pseq([1, 3, 1 ...
-
... argument can also be a pattern: ( var a; a = Pnaryop(\wrap, Pseries(0, 1, 12), [Pseq([3, 4, 5], inf), Pseq([9, 7], inf)]); a.asStream.all; ) // common cases: Pwhite(0, 1, inf).linexp(0, 1, 200, 1000); Pwhite(0, 1, inf).degreeToKey([0, 1, 3, ...
-
... = a.asStream; 9.do({ x.next(Event.new).postln }); ) ( var a, b; a = Pset(\freq, Pseq([401, 801], 2), Pbind(\dur, 0.5)); x = a.asStream; 9.do({ x.next(Event.new).postln }); ) // sound example ( SynthDef(\sinegrain, { |out = 0, freq = 440, su ...
-
... ce methods Examples s.boot; a= Pbind(\dur, 1/3, \legato, 0.4, \midinote, PLatch(Pseq([0, 2, 4, 5], inf), Pseq([0, 1, 1, 1, 1], inf)).trace*5+50).play a.stop a= Pbind(\dur, 1/6, \legato, 0.2, \amp, PLatch(PSinOsc(8), PSinOsc(16)).trace*0.5). ...
-
... has been passed down, use Pmul . ( var a, b; a = Pmulpre(\note, 2, Pbind(\note, Pseq([1, 2, 3]))); x = a.asStream; 9.do({ x.next(Event.default).postln }); ) ⧉ ✔ Pmulpre does not override incoming values: ( var a, b; a = Pmulpre(\freq, 801, ...
-
... ount . count = value . embedInStream ( event ) Examples ( var a, b; a = Pfin(5, Pseq(#[1, 2, 3], inf)); b = a.asStream; 9.do({ b.next.postln }); ) // Pfin used as a sequence of pitches ( SynthDef(\help_sinegrain, { |out = 0, freq = 440, sus ...