-
... to prevent multi-channel expansion in SynthDefs and Patterns (see Klank for an example). Refs can also be used to simplify the coding of co-routines used in EventStreams (see Proutine for an example). example: x = Ref ( nil ); z = obj.meth ...
-
... from uniformly distributed values: sqrt(-2 * log(1.0.rand)) * sin(2pi.rand) // example ( var a; a = Pgauss (0.0, 100, inf ); c = a.asStream.nextN(500); w = Window .new( "Pgauss" , Rect (10, 10, 540, 800)); // plot the values c.plot(bounds: ...
-
... Shift-Return. You will need to start the default server before you can hear any examples. By convention the default server is assigned to the interpreter variable 's'. (At startup the default will be the localhost server.) You can start the ...
-
... on is evaluated when a user scrolls the view or sets the visibleOrigin. See the example in the SCScrollView help file. Instance Methods A window's SCScrollTopView can be accessed using the SCWindow:view method. See the examples below. autoh ...
-
... exhaustive explanation of it is beyond the scope of this document. As such, the examples at the bottom of this document and those found in the various tutorials accessible from Help may be necessary to make some aspects of its use clear. UG ...
-
... initialize the starting id. *next get next id, which is unique to the system // example UniqueID .next; UniqueID .next; UniqueID .next;
-
... eturns nil obj.removeFunc(f) returns nil, if f === obj, else obj is returned // example a = nil ; a = a.addFunc { |x="", y=""| "this % is an % example\n" .postf(x, y); 1 }; a.postln; a = a.addFunc { |x="", y=""| "there is no % that is %\n" ...
-
... nc, falseFunc); ..or.. expr.if (trueFunc, falseFunc); see also: the if helpfile examples: if ( [ false , true ].choose, // Boolean expression (chooses one at random) { "expression was true" .postln }, // true function { "expression was fals ...
-
... th - number of values produced (default: inf) See also: BrownNoise , Pgbrown // example ( var a; a = Pbrown (0.0, 1.0, 0.1, inf ); c = a.asStream.nextN(500); w = Window .new( "Pbrown" , Rect (10, 10, 540, 800)); // plot the values c.plot(bo ...
-
... d go until the end of the line. Comments can also be delimited with /* and */ . examples: // single line comment /* multi line comment */ /* Unlike C, you can have /* nested */ comments */