-
... _pattern = Pbind( \instrument, \grain_buffer, \scale, Scale.major, \root, Pfunc({~root}), \octave, Pwrand([5,6,7],[1,0.5, 0.125].normalizeSum, inf), \degree, Pxrand([1, 4, 5], inf)-1, \index, Pfunc { |e| ((e.use{ ~midinote.()} - ...
-
... poClock.new; Pbind(\freq, rrand(440, 880)).play(~clock, quant: 1); Pbind(\freq, Pfunc({"beats: % tempo: %\n".postf(~clock.beats, ~clock.tempo); rrand(440, 1200) })).play(~clock, quant: 1); ~clock.tempo = 1 ~clock.setGlobalTempo(3, 90) ~cloc ...
-
... 0; Pdef(\arp).stop; Pdef(\arp, Pbind( \instrument, \default, \note_obj, Pfunc { // construct chord with chordSort and notePat var chord = ~notePat.(~notes.select(_.notNil).sort(~chordSort)); var ret; var newChord ...
-
... 3, 4, 8], inf ), \dur , 0.5, \octave , [2, 1], \instrument , \berlinb , \pan , Pfunc ({1.0.rand2}) ).asStream; ) Additional arguments Here is an example with more bindings. Here we have added a filter with cutoff and resonance arguments. Y ...
-
... Pseq(~allPoints.differentiate.shift(-1), 1)], 1), \degree, 5, \xval, Pfunc({ | ev | ev[\firstOrder][0]; }), // xval somewhere between 0 and 350 \yval, Pfunc({ | ev | ev[\firstOrder][1]; }), // yval somewhere between 0 and 3 ...
-
... appens in the case of a Stream that will repeatedly evaluate a Function? // the Pfunc just describes what a Stream, polled from it, should do (evaluate a Function by the method next) // the Pfunc itself is not bound to a specific Environmen ...
-
... patterns, but - // especially important with event patterns: copying within the Pfunc function ensures // that buffered items of the *source* are not altered and second copying // (delegated to the MemoRoutine) ensures that items buffered i ...
-
... appens in the case of a Stream that will repeatedly evaluate a Function? // the Pfunc just describes what a Stream, polled from it, should do (evaluate a Function by the method next) // the Pfunc itself is not bound to a specific Environmen ...
-
... , 0.25], inf), \root, -12, \degree, Pseq([0, 3, 5, 7, 9, 11, 5, 1], inf), \pan, Pfunc({ 1.0.rand2 }), \cut, Pxrand([1000, 500, 2000, 300], inf), \rez, Pfunc({ 0.7.rand +0.3 }), \amp, 0.2).play; ) ⧉ ✔ The ListPattern s can be put around Even ...
-
... st = List.new; var pbindpat; var makebusmap; makebusmap = { arg key; Pfunc { arg ev; ev[key].asMap } }; if(pat.class == EventPatternProxy) { pbindpat = pat.source; } { pbindpat = pat }; pbindpat.patternpairs. ...