-
... eq = 440| var snd = SinOsc.ar(freq, mul: amp); snd = snd * EnvGen.kr( Env.perc, doneAction: Done.freeSelf ); Out.ar(0, snd!2); }).add; win.layout_( VLayout() .margins_(0) .add(keyboard) ); CmdPeriod.doOnce({ win.close; }); win.front; }); ) ...
-
... tead of a.set('position',[x,y,z]); addAction(property,func) Add an action to be done when the property is received. property The property name func The function to be performed. The argument is an array with the value(s). removeAction(prope ...
-
... 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; ) // interlace two streams ( var c = Ppatlace([ Pseq([0, 0, 0, 0, 8, 0, 8], inf), Pseri ...
-
... names, ///// tuning parameter values, or deleting unwanted presets. ///// When done, save the textfile where it is, and ///// then load the edited settings again with: NdefPreset('granbuf').loadSettings(clear: true); */ List[ ('curr' -> [ ...
-
... ecay = 5, coef = 0.1; var env, snd; env = EnvGen.kr(Env.linen(0, decay, 0), doneAction: 2); snd = Pluck.ar( in: BrownNoise.ar(amp), trig: Impulse.kr(0), maxdelaytime: 0.1, delaytime: freq.reciprocal, decaytime: decay, ...
-
... e ); Task ({ 20.do{ f.writeLine( Array .fill( 10, { 1.0.rand })); 1.0.wait; }; "done" .postln; }).play; f.close; // view the file: "testfile2.txt" .openDocument; // read it with the player: a = TabFilePlayer .new( "testfile2.txt" ); a.next; ...
-
... = 0, freq = 440, sustain = 0.05| var env; env = Env.perc(0.01, sustain, 0.2).kr(doneAction: Done.freeSelf); Out.ar(out, SinOsc.ar(freq, 0.5pi, env)) }).add; ) ( a = Pbind( \instrument, \help_sinegrain, \note, Pxrand([0, 5, 7, 9], inf), \dur ...
-
... t look up any unspecified argument values from the current Environment. This is done with the valueEnvir and valueArrayEnvir methods. These methods will, for any unspecified argument value, look in the current Environment for a symbol with ...
-
... ubroutines have completed. // an array of routine functions: ( a = [ { 1.wait; \done_one .postln }, { 0.5.wait; \done_two .postln }, { 0.2.wait; \done_three .postln } ]; ) // join after 0 ( Routine { "join = 0." .postcln; a.fork(0); \doneAl ...
-
... nodeproxy's variable name (at least in proxyspace). Since the actual lookup is done in the Pdef's dictionary, you can easily interchange NPdef and NPxdef with one another, to change the event type. See also NPxdef which is similar but cros ...