-
... specs.select({|x| x.isKindOf(ControlSpec)}).keys.choose; MinBox.new(w, (0@0)@([rrand(20,100)@rrand(20,100)].choose)) .mode_(MinBox.modes.choose) .textMode_(MinBox.textModes.choose) .label_(spec.asString) .align_(MinBox.aligns.choose) .spec_ ...
-
... 0.8, freq=440, sustain=1, fattack=0.1, famp=4| var sound = Pulse.ar([freq, freq*Rand(0.999, 1.001)], [0.2, 0.8]); var fenv = EnvGen.kr(Env.perc(fattack, sustain), 1, freq*famp, freq); sound = MoogFF.ar(sound, fenv, 2); sound = sound * EnvGe ...
-
... 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 ...
-
... = 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 ...
-
... amp.kr(0.1)), 0.001, 0.2) * PinkNoise.ar, \freq.kr(100) + SinOsc.ar(4*\freq.kr, Rand(), \depth.kr(0)), \decay.kr(1)); //Line.kr(1, 0, \decay.kr * 10, doneAction:2); src = src * EnvGen.kr(Env.adsr(0.01, 1, \release.kr(0.1)), gate: \gate.kr(1 ...
-
... { EZSmoothSlider (w, 392 @ 16 , " Freq " , \freq ,unitWidth: 30 ,initVal: 6000 .rand, numberWidth: 60 ,layout: \horz ) .setColors( Color .grey, Color .white) .font_( Font ( "Helvetica" , 11 )); }; ); Window .closeAll // use this to close al ...
-
... o{ EZRoundSlider (w, 392 @ 16 , " Freq " , \freq ,unitWidth: 30 ,initVal: 6000 .rand, numberWidth: 60 ,layout: \horz ) .setColors( Color .grey, Color .white) .font_( Font ( "Helvetica" , 11 )); }; ); Window .closeAll // use this to close al ...