-
... 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 ...
-
... .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, ...
-
... 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 ...
-
... r(freq, 0, amp) * EnvGen.kr(Env.sine(dur, amp), doneAction: 2) * In.kr(envbus), Rand.new(-1.0, 1.0) ) ) // read off the overall env control of the ProcMod }).add; // create a new proc mod, and assign a function to it a = ProcMod.new(Env([0, ...
-
... p=0@0; 20.do{ EZFancySlider(w, 392@14," 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 all the windows / ...
-
... with stepsize two Routine { var i = 10; while { i > 0 } { i.yield; i = i - 5.0.rand } }.do { arg item; item.postln }; // 'do' applies to the Routine ⧉ ✔ NOTE: The syntax (8..20).do uses an optimization to avoid generating an array that is ...
-
... , 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(En ...
-
... ons. See Adverbs for Binary Operators . Discussion: ( var m = Matrix.with(Array.rand(9, -9, 9).clump(3)); var t = m.thresh(3); var t2 = m.thresh2(3); " original".postln; m.postmln; " thresh".postln; t.postmln; " thresh2".postln; t2.postmln; ...
-
... ews have likely // been created before. var tab = UserView() .background_(Color.rand); buttonLayout.add(button); stackLayout.add(tab); }); // Allows to specify the starting tab stackLayout.index_(0); tabView.layout_( VLayout() .add(buttonLa ...