-
... 0, freq= 400, beat= 1, amp= 1, pan= 0| var z; z= Mix(SinOsc.ar(freq+[0, beat], Rand(0, 2pi), amp*0.5)); Out.ar(out, Pan2.ar(z, pan)); }).add; SynthDef(\saw, {|out= 0, freq= 400, beat= 1, amp= 1, pan= 0, lp= 1000| var z; z= Mix(LPF.ar(LFSaw ...
-
... 0, freq= 400, beat= 1, amp= 1, pan= 0| var z; z= Mix(SinOsc.ar(freq+[0, beat], Rand(0, 2pi), amp*0.5)); Out.ar(out, Pan2.ar(z, pan)); }).add; SynthDef(\saw, {|out= 0, freq= 400, beat= 1, amp= 1, pan= 0, lp= 1000| var z; z= Mix(LPF.ar(LFSaw ...
-
... velope times produce wildly different end results. Room for improvement: all Rands should be TRands, doneAction should be an argument, then it could be retriggered. Levels and timings of elements could be arguments. ( s = Server.defaul ...
-
... value_(i / q) }); w.front ) // show the area of the view. v.background_( Color .rand) // The sliders automatically expand to the optimal width // Stretching the layout view. Slider height is fixed. ( q = 10; w = Window .new; v = VLayoutView ...
-
... degreeStream, \leapFrog], { arg root = 36, numEvents=20, oneSkip=1, twoSkip=2; Prand([ Pseries(root, oneSkip, numEvents), Pseries(root - 12, twoSkip, numEvents) ], inf) }, [ StaticIntegerSpec(-100, 100), StaticIntegerSpec(2, 100), StaticInt ...
-
... 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.rand) * EnvGen.kr(Env.sine(4), 1, 0.02, doneAction: Done.fre ...
-
... rderedNames; ///// more drawing examples - see also Pen.help // draw silly fast random rectangles MFdef(\demoDraw).add(\randRects, { |uv| Pen.color = Color.rand; // Pen.fillRect(Rect(10,10,200, 200)); 2.do { Pen.fillRect( Rect(q.draw.extent ...
-
... x! - last slider 9: mainVol via mainVol transport buttons: nk1: rew, play, fwd: rand, prev, next influx preset nk1: loop, stop, rec: rand, prev, next MainFX preset ***********/ /* // flexify name in order to build multiple MKtls with this f ...
-
... i| Ndef(("alarm"++i).asSymbol, {|amp= 0, lag= 5| var src= Pulse.ar( ExpRand(300, 3000)+LFPulse.kr(ExpRand(3, 30), 0, Rand(0.4, 0.6), Rand(-100, 100)), Rand(0.4, 0.6), LFPulse.kr(LinRand(0.05, 2), 0, LinRand(0.1, 0.5), 0.5) ...
-
... @1; 20.do{ g = EZRanger(w, 400@16, " test ", \freq, { |v| v.value.postln }, [50.rand, 50+20000.rand], unitWidth: 30) .setColors(Color.grey, Color.white, Color.grey(0.7), Color.grey, Color.white, Color.white, Color.yellow) .font_(Font("Helve ...