-
... 2], 1), Pn (4, 16)], inf ), \dur , 0.25 ).play; ) “Multichannel” expansion In a SynthDef, using an array as the input to a UGen expands the UGen into an array of UGens (see MultiChannel ). Something similar happens in patterns. Normally a v ...
-
... previous section demonstrated how to use data routines to generate sequences of synthesis parameters. However, writing a routine with explicit yields is not a very convenient syntax. Since this is an essential part of creating computer musi ...
-
... ecuted when the env is finished playing. This can be used to free the enclosing synth, etc. See UGen-doneActions for more detail. { EnvGen .kr( Env .perc, 1.0, doneAction: 2) * SinOsc .ar(440, 0, 0.1) }.play; Note: The actual minimum durati ...
-
... some cases you might need to defer the function by a short amount of time a = { Synth ( \default )}; a.value; CmdPeriod .add({{a.value}.defer(0.01)}); // remove all CmdPeriod .removeAll
-
... m, [ next states ], ... end item (or nil), nil ] next states: nil is terminal ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( Env .perc(0.01, sustain, 0.2), doneAction:2); Out .ar(out, SinOsc . ...
-
... ext } }; // this very efficient bench { 100.do { y.next } }; // sound example ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( Env .perc(0.01, sustain, 0.2), doneAction:2); Out .ar(out, SinOsc . ...
-
... . (See NodeEvent for a description of how events can be used to control running synths.) The event responds to play, stop, pause, resume , keeping both the file and buffer open. The file is closed and the buffer is freed when the event is s ...
-
... it in code // onClose ( x = Window .new.front; x.alpha = 0.8; x.onClose_({ y = Synth .new( \default ) }); //close the window and the synth plays ) x.close; y.free; // a window with scrollers ( w = Window (scroll: true ); // you must set th ...
-
... oClock .default.tempo = 1; x.stop; x.play; x.stop; // sound example ( // load a synthdef s.boot; SynthDef ( "pdef_grainlet" , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( Env .perc(0.01, sustain, 0.3), doneAction:2); Out ...
-
... s, fadeTime, bufsize, zoom) Plays a function and shows output in scope, returns synth object, like { }.play Server .default = s = Server .internal s.boot a={ SinOsc .ar([330,440], 0, 0.4)}.scope; a.free; *ugenScopes Returns an array of the ...