-
... in, -4]).kr.midiratio; bw = 1.035; snd = { DelayN.ar(Saw.ar(freq * ExpRand(bw, 1 / bw)) + Saw.ar(freq * 0.5 * ExpRand(bw, 1 / bw)), 0.01, Rand(0, 0.01)) }.dup(20); snd = (Splay.ar(snd) * 3).atan; snd = snd * Env.asr(0.01 ...
-
functors - Using Pdef for building abstract pattern functions while live coding by julianrohrhuber (julian.rohrhuber) Code
... EnvGen.kr(Env.perc(0.03, sustain), 1, doneAction:2); 3.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; ) Pdef(\s ...
-
... ach| InBus.ar(each, each.numChannels) }; var mix = all.sum { |x| var d = { 0.01.rand } ! x.size; DelayN.ar(x, d, d) }; var loop = LocalIn.ar(~dirt.numChannels); 5.do { loop = AllpassL.ar(loop, 0.15, { ExpRand(0.03, 0.15) } ! 2, 3) }; mix = ...
-
... e(0, false ); ) ( r = Routine ({ var j = 0; 20.do({ arg i; b.select((b.size -1).rand.abs); 0.1.wait; b.x_(1.0.rand.abs); b.y_(1.0.rand.abs); }); b.select(-1); }); AppClock .play(r); ) //show boxes with a string in it: ( a = Window ( "text-b ...
-
... sig = Pan2.ar( sig, SinOsc.kr( \rate.kr(0.05).range(-0.9,0.9)+{Rand(-0.6,0.6)}), \level.kr(1), ); Out.ar(\out.ir(~reverbBus),sig); }).add; SynthDef(\reverb, { arg in=0, out=0, revdecay=5; var wet,dry, ...
-
... s = 10.collect { |i| Synth(\outputTest, [ \out, [0, 1, 2, 3].choose, \freq, 400.rand ]); }; 1.wait; TreeSnapshot.get({ |snap| var playing = snap.root.children[0].children.select { |node| node.isKindOf(SynthSnapshot) && (node.outputs[0].star ...
-
... ed class methods Instance Methods Inherited instance methods Examples ( // Dust randomly triggers Decay to create an exponential // decay envelope for the WhiteNoise input source { z = Decay.ar(Dust.ar(1, 0.5), 0.3, WhiteNoise.ar); DelayN.a ...
-
... file15.txt" ); Task ({ 3.do{ m.open; 20.do{ m.writeLine( Array .fill( 10, { 1.0.rand })); 0.25.wait; }; m.close; 1.0.wait; }; "done" .postln; }).play; n = MultiFileReader .new( "testfile15.tar" ); n.next; n.next; n.next; // MultiFileReader ...
-
... "test").front().action_({ |v| v.postln; }).labelText_("Label test").value_(1.0.rand).value.postln; * SliderSequencerView() * * AUTHOR: Marinus Klaassen (2012, 2021Q3) * * EXAMPLES: m = SCMMIDIFuncNoteView(bounds: 400@50).front(); m.actionN ...
-
... Dict.size; // test switching gui between pages: // turn all knobs in group 0 to random value k.elAt(\kn, 0).do(_.value_(1.0.rand)); // now switch to scene 1 - all knobs are at 0 g.pagesSwitch.valueAction_(1); // turn all knobs in group 1 to ...