-
... arg out, bufnum, from=0.0, to=1.0, sustain=1.0; var env; env = EnvGen .ar( Env .linen(0.01, sustain, 0.01), 1, doneAction:2); Out .ar(out, BufRd .ar(1, bufnum, Line .ar(from, to, sustain) * BufFrames .kr(bufnum) ) * env ) }).store; ) s.send ...
-
... ing full size) start - the start index of the array. (0 by default) // exec one line at a time i = SCImage .new( // "http://supercollider.sourceforge.net/theme/sc01/icon.supercollider.gif" Document .current.dir +/+ "icon.supercollider.png" ...
-
... 4); // since it is not band limited, there are aliasing artifacts { LFPar .ar( XLine .kr(100,15000,6),0,0.1) }.scope(1, zoom: 4); // cubic approximation of sine { LFCub .ar( LFCub .kr( LFCub .kr(0.2,0,8,10),0, 400,800),0,0.1) }.scope(1, zoo ...
-
... his might crash sc-lang: c.invoke( "makeKeyAndOrderFront:" , [ nil ]); but this line is fine: c.invoke( "makeKeyAndOrderFront:" , [ nil ], true ); Common Conversion Table SuperCollider will try to convert types when possible, here are the m ...
-
... ls" for instance. unixCmd(action, postOutput) Execute the String on the command line using the Bourne shell (sh). Returns the pid of the newly created process (use Integer.pidRunning to test if a pid is alive). action is a Function that is ...
-
... ttern . asStream { ^ Routine ({ arg inval; this .embedInStream(inval) }) } This line creates a Routine whose job is simply to embed the pattern into its stream. "Embedding" means for the pattern to do its assigned work, and return control t ...
-
... orresponding functions to be evaluated if true. Unlike Object-switch, this is inlined and is therefore just as efficient as nested if statements. ( var i, x, z; z = [0, 1, 1.1, 1.3, 1.5, 2]; i = z.choose; x = case { i == 1 } { \no } { i == ...
-
... ut for no decorator // w.addFlowLayout // you can use this instead of the above line for brevity. w.view.background = Color ( 0.6, 0.8, 0.8 ); 32.do({ arg i; // Here Button returns the button class for the current kit b = Button ( w, Rect ( ...
-
... hape of the envelope segments. The possible values are: 'step' - flat segments 'linear' - linear segments, the default 'exponential' - natural exponential growth and decay. In this case, the levels must all be nonzero and the have the same ...
-
... the new method name. s.boot; ( SynthDef ( \help_Buffer_copy , { arg out=0, buf; Line .ar(0, 0, dur: BufDur .kr(buf), doneAction: 2); // frees itself Out .ar(out, PlayBuf .ar(1, buf)); }).add; ) ( b = Buffer .read(s, "sounds/a11wlk01.wav" ); ...