-
... / let's reuse that for the number of repeats ~makeStream = { ~seqStream = Pdup( Pfunc { max(1, ~offset.next) }, Prand(~pool.asArray, inf) ).collect(_.item).asStream; }; ~embedInStream = { |inval| Pdup(Pfunc { max(1, ~offset.next) }, Prand(~ ...
-
... HSuse by the local variable ~val , e.g. by Pkey ( \val ) or a construction with Pfunc . In the case of several help synths (HSpar), there is the option of defining a separately timed pattern to switch between playing help synths, always mar ...
-
... 10), (zz: 10, yy: 2)], inf)) }, { |x| Pchain( Pbindf(x, \xx, Pseq([1, 2]), \yy, Pfunc { |event| event[\zz] } ), Pbind(\zz, Pseries()) ) }, { |x| Pfindur(2, x).loop }, { |x| Ppar([x, Plazy { x }]) }, { |x| Psym(Pseq([\a, \b], 2), (a: x), (b: ...
-
... freq ~params[\freq] = 880; // somebody else start playing ~pbind = Pbind(\freq, Pfunc({~params[\freq]})).play; // somebody else change it ~params[\freq] = 660; ~pbind.stop; /* Notes about OSCObjectSpace 1. Only objects which can be archived ...
-
... ***** Pattern definitions for the first voice ***** // part 1 var cond6b = Pif( Pfunc { Pdefn(\scale).source == Scale.harmonicMinor }, 6b, 6); var notes_voice1_part1 = Ppatlace([4, 1, 2, 3, 2, 1, 0, 0, 2, 4, 3, 2, 1, 2, 3, 4, 2, 0, 0, \p, 3 ...
-
... , PLseq ([0, 0, 1, 2]), // echo introduces delay, so do delay if no echo \lag , Pfunc { |e| e.fxo.asArray.includes(1).if { 0 }{ 0.2 } }, \a , 0.03, \att , 0.01, \rel , 0.1, \cd , Pkey ( \att )+ Pkey ( \rel ) + 0.001 ); PLbindef ( \echo , \f ...
-
... peer1); ) // only one posts code when received // and we'll pass a no-op codeDumpFunc to avoid duplicates sends since we're on one machine ~codeRelay2 = CodeRelay(~addrBook2, true, codeDumpFunc: {}); ~codeRelay1 = CodeRelay(~addrBook1); //s ...
-
... chIndex ).collect(switch( _ , 0, [0, 2.5], 1, [0, 7])) , \legato , 0.2, \post , Pfunc { |e| e.use { "demandIndex: " .post; ~demandIndex.postln; "timeGrains: " .post; ~timeGrains.postln; "dur: " .post; ~dur.postln; "switchIndex: " .post; ~sw ...
-
... ist; ^value.performList(aSelector, anArgList) } // pattern support asPattern { ^Pfunc({ this.value }) } asStream { ^this.asPattern.asStream } // patch support: use like KrNumberEditor instrArgFromControl { |control| ^lag.notNil.if({ Lag.kr( ...
-
... ist; ^value.performList(aSelector, anArgList) } // pattern support asPattern { ^Pfunc({ this.value }) } asStream { ^this.asPattern.asStream } // patch support: use like KrNumberEditor instrArgFromControl { |control| ^lag.notNil.if({ Lag.kr( ...