-
... re SynthDef("TempoClick", { arg tempo = 1, subd = 1, bus = 0; // kill the synth every beat - this helps the client enforce sync Line.kr(0, 1, tempo.reciprocal, doneAction:2); Out.kr(bus, Impulse.kr(tempo * subd)); }).send(server); aliveThre ...
-
... ed to variable s: s.boot; // Play a repeating pattern that triggers a new synth every 0.4 seconds: x = Pn((dur: 0.4, midinote: 69, amp: 0.1)).play; // Create a ServerTreeView instance assigned to variable a: a = ServerTreeView(s) // Start p ...
-
... hdef has random elements. UGens like Rand(300, 400) create new random values on every send, while client-side random functions like exprand(1, 1.3) only get built once; to force new decisions with these, one can use rebuild . ( ~z = { Splay ...
-
... re SynthDef("TempoClick", { arg tempo = 1, subd = 1, bus = 0; // kill the synth every beat - this helps the client enforce sync Line.kr(0, 1, tempo.reciprocal, doneAction:2); Out.kr(bus, Impulse.kr(tempo * subd)); }).send(server); aliveThre ...
-
... ys get a double click. You can use DebounceCounter to only execute the function every nth time within a certain period. This means you can use mouseUpAction too, which has no clickCount, and is much better for use in lists or TreeViews. See ...
-
... ros.notNil }, { //Only multiply factors if poles or zeros are supplied if(zeros.every({ |item| item.magnitude == 0 }), { acoefs = Polynomial[1] }, { acoefs = zeros.neg.multiplyFactors }); if(poles.every({ |item| item.magnitude == 0 }), { bc ...
-
... , 24, 12]), [0.3, 0.3, 0.3], [pi, pi, pi] ] ) * 0.1 }; ) // building new synths every 2 seconds ( fork { loop { play { var mod = SinOsc.kr(Rand(0.1, 0.9), 0, Rand(5, 20)); Pan2.ar(DynKlang.ar(`[Array.rand(12, 200.0, 2000.0), 1, mod]), 1.0.r ...
-
... so here default repeats = inf of PLshuf has no effect: // new permutation with every loop as Pshuf has repeats = 1 ~a = [ Pshuf ((60..65)), 70, PLshuf ((75..80)) ]; // both Patterns have repeats = inf, // permutation is kept ~a = [ PLshuf ...
-
... ors[varCtrColorPairs[k][0] + varOffset].at(varCtrColorPairs[k][1]); varCtr[i+1].every(_.isSequenceableCollection).if { varCtr[i+1].do({|item,j| str = varCtr[i].asString ++ "[" ++ j.asString ++ "]" ++ " "; cview.decorator.nextLine; cview.dec ...
-
... |default, label, minval, maxval, warp, step| if( [ minval, maxval, warp, step ].every(_.isNil) ) { Udef.addBuildSpec( ArgSpec(this, default, TriggerSpec(label)) ); } { Udef.addBuildSpec( ArgSpec(this, default, TriggerSpec(label, ControlSpec ...