-
... , 100, 3, 105, 5, 107, 106, 1, 104, 8, 102, 102, 4, 108, 8, 109, 101 ] // 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 ...
-
... orresponds to the keycode values passed into the keyDownActions of SCViews. See example below. minval - The value to output when the key is not pressed. maxval - The value to output when the key is pressed. lag - A lag factor. See also Mous ...
-
... can embed Pdefns by name. dict_(a dictionary) set the dictionary to be used // example: ( // load a synthdef s.boot; SynthDef ( "gpdef" , { arg out=0, freq=440, sustain=0.05, amp=0.1, pan; var env; env = EnvGen .kr( Env .perc(0.01, sustain ...
-
... e assigned to that variable as an Array. Arguments must be separated by commas. examples: arg a, b, c=3; // is equivalent to: |a, b, c=3| arg x= 'stop' , y, z=0; // these args are initialised arg a, b, c ... d; // any arguments after the fi ...
-
... , -1); // all left x.set( \spread , 1, \center , 0); // full stereo // the same example written with arFill: ( x = { arg spread=1, level=0.2, center=0.0; Splay .arFill(10, { |i| SinOsc .ar( LFNoise2 .kr( rrand(10, 20), 200, i + 3 * 100)) }, ...
-
... er of frames in buffer, loops when set to 1 (default :1) see also [ Dbufwr ] // example b = Buffer .alloc(s, 24, 1); b.setn(0, { exprand(200, 500) } ! b.numFrames); b.getn(0, b.numFrames, { |x| x.postln }) ( { var indexPattern; indexPattern ...
-
... on is evaluated when a user scrolls the view or sets the visibleOrigin. See the example below. Creation *new(parent, bounds) Returns a new SCScrollView. (Inheritted from SCView ). parent - A SCWindow , or a container view such as SCComposit ...
-
... t to combine this UGen with a LeakDC or rescale around 0.0 via mul and add: see example below. // default values { Logistic .ar }.play // onset of chaos { Logistic .ar( Line .kr(3.55, 3.6, 5), 1000) }.play // explore via Mouse { Logistic .a ...
-
... ttern until the top stream ends. see also: PstepNadd *new(func, patternList); //examples ( f = { arg vals; vals.postln; }; x = PstepNfunc (f, [ Pseq ([1, 2, 3]), Pseq ([4, 5, 6]), Pseq ([7, 8, 9]) ]).asStream; 50.do({ x.next }); ) ( f = { a ...
-
... agnitudes2, phases2) and returns a resulting pair of arrays [magnitude, phase]. Example ( s.boot.doWhenBooted { c = Buffer .read(s, "sounds/a11wlk01.wav" ); } ) ( x = { var fftsize = 1024; var in, chain, in2, chain2, out; in = PlayBuf .ar(1 ...