-
... q = 440, sustain = 0.05| var env; env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction: Done.freeSelf); Out.ar(out, SinOsc.ar(freq, 0, env)) }).add; ) ( a = PdurStutter( Pseq(#[1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4], inf), Pseq(#[0.5, ...
-
... / so far, second order cascades only, Butterworth only. // first order could be done also, as could tcheby and bessel filters. // did not need them yet. // could be moved to ugens for more efficiency if needed. // adc 2006, with lots of hel ...
-
... stain = 0.05, amp = 0.1, pan| var env; env = EnvGen.kr(Env.perc(0.01, sustain), doneAction: Done.freeSelf) * amp; Out.ar(out, Pan2.ar(SinOsc.ar(freq, 0, env), pan)) }).add; ) Pdef(\x, Pbind(\dur, Pn(0.25, 3), \instrument, \gpdef)); Pdef(\y, ...
-
... = 0, freq = 440, amp = 0.1, gate = 1| var out; out = EnvGen.ar(Env.adsr, gate, doneAction: Done.freeSelf) * amp * Pulse.ar(freq, 0.25, 0.75); Out.ar(outbus, out ! 2); }).add; // see below for more on .add p = Pbind( // Use \harpsi, not \de ...
-
... ion pan - Determines where to pan the output. If numChannels = 1, no panning is done. If numChannels = 2, panning is similar to Pan2. if numChannels > 2, pannins is the same as PanAz. envbufnum - the buffer number containing a singal to use ...
-
... e.asFloat-time*0.001).wait; }, 1, { (1/currentSampleRate).wait; } ); }); }; "%: done".format(this.class).postln; } }
-
... tl( 'icon' ).explore( true ); // wiggle every control element and then: // when done, stop exploring, the descr MKtl( 'icon' ).explore( false ); // open the desc file, MIDIExplorer.openDoc; // edit for clarity and hierarchy, then save it he ...
-
... sub = SinOscFB.ar(freq*0.25, lfo2, 1, 0); env = Line.kr(1, 0, dur*4.0, doneAction: Done.freeSelf); noise = PinkNoise.ar(nl, 0); sig = (sig + sub + noise) * env; //sig = BLowPass4.ar(sig, filt); sig = MoogFF.ar(si ...
-
... 1000, i_end=500, i_time=1; ReplaceOut.kr(i_bus, Line.kr(i_start, i_end, i_time, doneAction: Done.freeSelf)); }).add ) ⧉ ✔ Play a 900 Hz sine wave. s.sendMsg("/s_new", "sine", x = s.nextNodeID, 1, 1, "freq", 900); ⧉ ✔ Put a frequency value o ...
-
... ttackTime: 0.001, sustainTime: 1, releaseTime: 0.01, level: 1.0, curve: 'lin'), doneAction: Done.freeSelf); sigr = sigr*env; sigl = sigl*env; Out.ar(out, [sigl,sigr]) }).add; ~getPbind = { arg n, amps, durs, freq; ~num ...