-
... eq=440, amp=0.1, pan=0, gate=1; var z; z = LPF.ar( Mix.new(VarSaw.ar(freq + [0, Rand(-0.4,0.0), Rand(0.0,0.4)], 0, 0.3)), XLine.kr(Rand(4000,5000), Rand(2500,3200), 1) ) * Linen.kr(gate, 0.01, 0.7, 0.3, 2); OffsetOut.ar(out, Pan2.ar(z, pan, ...
-
... e); }); if (char == $c, { this.stop; }); if (char == $r, { me.valueAction = 1.0.rand; }); if (char == $n, { me.valueAction = 0.0; }); if (char == $x, { me.valueAction = 1.0; }); //if (char == $c, { this.valueAction = 0.5; ^this }); if (char ...
-
... eq=440, amp=0.1, pan=0, gate=1; var z; z = LPF.ar( Mix.new(VarSaw.ar(freq + [0, Rand(-0.4,0.0), Rand(0.0,0.4)], 0, 0.3)), XLine.kr(Rand(4000,5000), Rand(2500,3200), 1) ) * Linen.kr(gate, 0.01, 0.7, 0.3, 2); OffsetOut.ar(out, Pan2.ar(z, pan, ...
-
... irs); satieObjects[\spatializers][\color].add(item.asSymbol -> Color.new255(100.rand, 150.rand,255, 0.9*255)); satieObjects[\spatializers][\size].add(item.asSymbol -> (satieGuiWidth/2) ); satieObjects[\spatializers][\position].add(item.asSy ...
-
... (soft takeover). Ndef ( \test , { |freq=200| Splay.ar( SinOsc .ar(freq * Array.rand(12, 0.95, 1.05))) }); Ndef ( \test ).play(vol: 0.1); Ndef ( \test ).gui(4) Ndef ( \test ).set( \freq , 300); // 3 midi steps == 0.02362; Ndef ( \test ).sof ...
-
... .kr(b) * rate, 0, BufFrames.kr(b))) }.play; ) x.set(\rate, 5); y.set(\rate, 2.0.rand); x.set(\rate, 2); b.free ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classes/BufRd.schelp link::Classes/BufRd::
-
... th'] = "some/path"; result['things'] = [1,2,3]; result['quantity'] = 4; result['random'] = 1024.rand; // the dictionary will be sent as JSON // and available in the browser as a JavaScript object reply.value( result ); }.fork } ); Your quar ...
-
... lism],{ arg trig,qnty=2,decay=0.04,noise=0.01; var z, f1, f2; f1 = 500 + 2000.0.rand; f2 = 8000.0.rand; z = Array.fill(2, { `[ // sine oscil bank specification : y = Array.fill(qnty, { f1 + f2.rand} ), // frequencies nil, // amplitudes defa ...
-
... 1, pan, amp=0.1; var out, eg, fc, osc, a, b, w; fc = LinExp .kr( LFNoise1 .kr( Rand (0.25, 0.4)), -1, 1, 500, 2000); osc = Mix .fill(8, { LFSaw .ar(freq * [ Rand (0.99, 1.01), Rand (0.99, 1.01)], 0, amp) }).distort * 0.2; eg = EnvGen .kr( ...
-
... .keys } *get { arg preset; ^table[preset] } *at { arg preset; ^table[preset] } *rand { ^table.choose } }