-
... off]); i= i+len; if(i<input.size, { out.add(input[i]); i= i+1; }); }); }); ^out.array; } *decompress {|input| var out= List[], i= 0, len, off; while({i<input.size}, { len= input[i]; if(len==0, { out.add(input[i+2]); }, { off= input[i+1]; wh ...
-
... ess { |key, value| if (key.isFilterRole) { ^[0, 1].asSpec }; if (value.isKindOf(Array)) { value = value[0] }; if (value.isKindOf(SimpleNumber).not) { ^nil }; // label units as \guess so one can throw spec away later. ^if (value.abs > 0) { C ...
-
... anged(\synch, this); } connect { | view | ^EVSync(this, view) } asOSCArgEmbeddedArray { | array| var retVal = value.copy; if (rateWarp.notNil) { retVal.levels = retVal.levels.midiratio; retVal = retVal.rateWarp; }; ^retVal.asArray.asOSCArgE ...
-
... tern in this case. If a Function is given, it will be passed 4 arguments: .) an array of durations of the current division, based on the following arguments .) the current division number div .) the current division base number divBase .) t ...
-
... t - threshold; trig2 = threshold - input; // reverse trigger SendTrig.kr( trig, Array.series( nc, 0, 1 ), trig ); SendTrig.kr( trig2, Array.series( nc, nc, 1 ), trig2.abs ); Out.kr( out, [trig, trig2].flatten * mul); }).send(s); } myInit{ s ...
-
... s.rotate(offset); notes = notes.rotate(offset); }); } hlDots_ {|dots| if(dots.isArray.not, { dots = dots.bubble; }); ^aHLDots = dots; } hlDots { ^aHLDots } mod_ {|mod| this.makeNotes(aMod: mod); } tonic_ {|tonic| this.makeNotes(aTonic: toni ...
-
... xies [ input , deepOffset, argName, spec ] annotatedInputProxies { arg offset=0,array; // [ input , deepOffset, argName, spec ] var inputs; inputs = this.inputs; if(array.isNil,{ array = [] }); inputs.do({ arg a,i; if(a.isKindOf(PlayerInput ...
-
... rver{ ^ClusterServer.new([this]) } } + Group{ asClusterGroup{ ^ClusterGroup.fromArray([this]) } } + OSCBundle{ asClusterBundle{ ^ClusterOSCBundle.fromArray([this]) } } + SynthDef{ sendCluster{ |clusterServer| clusterServer.items.do{ |server ...
-
... res } } + ControlUGenNode { asLaTeX { var nm = names; nm = (nm ?? ["\\dots"]).asArray.extend(arguments.size.max(1), "\\dots"); nm = nm.collect { |x, i| if(arguments[i].notNil) { x = x ++ "^{" ++ arguments[i] ++ "}"; }; x }; ^nm.asLaTeX } } ...
-
... p to convert beats to bar numbers over a time line // signatures are notated as arrays: [3,4] means a signature of 3/4 // events: a sorted array with elements [ num, denom, bar, beat, numBars ] // the last two items of the array (beat, numB ...