-
... ostln; inval = outval.yield; } ^inval } } PiramaOffset { *new { arg leveldict; ^Pfunc { |event| leveldict[event[\irama].value] ?? { leveldict[\default] } } } } /*PiramaOffset2 : Pcollect { *new { arg pattern, leveldict; ^super.new(pattern, ...
-
... // or Pspawn( Pbind(*[ method:\par, delta:Pseq((1..4),inf), pattern:Pfunc({ |ev| // choose some random pattern from dict Pfindur(ev.delta, dict.values.choose.selector(ev)) }) ]); ).play )
-
... 0, -1], inf), \dur, Pseq([1, 1, 1, 1, 0.25, 0.25, 0.5, 1, 1, 1], inf), \legato, Pfunc({a.beatDur})).play(a, quant:4) a.shift= -3; //latency compenstation. 3 ticks early //now try changing tempo in AudioMulch b.stop a.clear //--show manual s ...
-
... (1..7))), // use Function ~seti (2d) for SC versions without method seti: \do , Pfunc { |e| s.makeBundle(s.latency, { ~seti .(x, \otAmps , e.i, e.otAmp) }) } // for newer SC versions with method seti you can use this line instead: // \do, P ...
-
... y { *new { ^super.new.init } init { this.envir = this.class.event; this.source_(Pfunc { |inval| composeEvents(inval, envir) }) } getNews { var ev = super.get(\news); if(ev.isNil) { super.set(\news, ev = ()) }; ^ev } set { arg ... args; this ...
-
... durStream = ~durMarkov.asStream; currentEnvironment }; ~asPattern = #{ var dur; Pfunc(inEnvir { [dur = ~durStream.next, ~lenMarkov.next(dur)] // .debug("markovRhythm output") }) }; }) => PR(\markovRhythm); }; AbstractChuckArray.defaultSubTy ...
-
... durStream = ~durMarkov.asStream; currentEnvironment }; ~asPattern = #{ var dur; Pfunc(e { [dur = ~durStream.next, ~lenMarkov.next(dur)] // .debug("markovRhythm output") }) }; }) => PR(\markovRhythm); }; AbstractChuckArray.defaultSubType = s ...
-
... Pseq([0, -4, -2, -4, -3, -4, -3, -4], inf) - 20 ), 0.2), Pstep( Pbind( \degree, Pfunc({ { 10.rand }.dup(10) }), \scale, Pfunc({ { rrand(1, 2) }.dup(7).integrate }) ), 5 ) ).play ) // change one parameter ( Pbind( \degree, Pstep(Pseq([1, 2, ...
-
... ID The best approach is to save an incoming value into a variable, and then use Pfunc to access the variable for each event. ( ~legato = 1; c = MIDIFunc.cc({ |value, num, chan, src| ~legato = value.linlin(0, 127, 0.1, 2.5) }, 1); // 1 means ...
-
... value pattern). Access to the environment depends on function-driven patterns: Pfunc, Pfuncn, Proutine, .collect, .select, .reject, and similar. The 'independent' flag specifies whether the environment will be kept separate for each stream ...