-
... kr(Env.perc(0.03, sustain), 1, doneAction: Done.freeSelf); 5.do { var d; d = exprand(0.01, 1); u = SinOsc.ar(d * 300, u, rrand(0.1, 1.2) * d, 1) }; Out.ar(out, Pan2.ar(SinOsc.ar(u + 1 * freq, 0, amp * env), pan)); }).add; ) s.boot; #a, b, c ...
-
... questResp; var <allClientIDs; var <>onJoinServerAction; // var <time; var <>usesRandIDs = true, <>usesSeparateState = true, <>postSource = false; var <synthDefNames; init { super.init; servers = (); allClientIDs = (); synthDefSendCmd = repu ...
-
... ? key.getArrowKey; // standard keydown if (char == $r, { this.valueAction = 1.0.rand; }); if (char == $n, { this.valueAction = 0.0; }); if (char == $x, { this.valueAction = 1.0; }); if (char == $c, { this.valueAction = centerPos; }); if (ch ...
-
... phase index into the rotation oscillators var <rotateMode; // \rtt or \ypr var <randomizedAxes; // dictionary of booleans for randomize state of each axis var <>randomVariance; // normalized value to apply to movement speed if randomized va ...
-
... .getOutputValue(\_protocolOutput_Image) i.plot; j = Image.color(100, 100, Color.rand); j.plot; m.setInputValue(\_protocolInput_Image, j); ////////// Control some audio: Stupid Pan Example ( w = Window("Stupid Pan Example", Rect(0, 20, 600, ...
-
... .25, bal=0, amp=0.4, gate = 1; var x; x = Mix .fill(4, { LFSaw .ar((note + {0.1.rand2}.dup).midicps, 0, 0.02) }); x = RLPF .ar(x, fc, rq).softclip; x = RLPF .ar(x, fc, rq, amp).softclip; x = Balance2 .ar(x[0], x[1], bal); x = x * EnvGen .kr ...
-
... fied duration"). ( p = Pspawner { |sp| var notes, dur; loop { notes = Pseries( rrand(-9, -5), Pconst(16, Pwrand([1, 2, 3, 4], [1, 4, 4, 2].normalizeSum, inf)), inf ).asStream.all; dur = exprand(2.5, 6.0); sp.par(Pbind( \instrument, \default ...
-
... an2.ar( SinOsc.ar(freq, 0, amp) * EnvGen.kr(Env.sine(dur, amp), doneAction: 2), Rand.new(-1.0, 1.0) ) ) // read off the overall env control of the ProcMod }).add; // create a new ProcModR, and assign a function to it a = ProcModR.new(Env([0 ...
-
... = Array .fill(5, { |i| (i + 1).reciprocal}); // amplitude array 1/n b = Array .rand(5, 0.125, 1.0); // random amplitudes // convert amplitudes into sones: t = [f, a.ampdb].flop.asSone(90).round(0.01); u = [g, b.ampdb].flop.asSone(90).round ...
-
... ine = FlowView.new(win.view, (win.view.bounds.width - 20)@50).background_(Color.rand); //for filename Button(thisLine.view, 750@50) .states_([[fileText, colorSet1[4], colorSet1[1]]]) .action_({thisSample.play(idx)}) .receiveDragHandler_(dra ...