-
UnaryOpFunction represent a unary oparation on a function superclass: AbstractFunction Operating on functions instead of numbers, what results is not a result of the calculation, but a structure that represents that calculation. // example ...
-
... 0.8, [-1, 1]].acos; // acos is the reverse of cos: c = sin( _ + 0.5pi); // cos function c.([-1, -0.5, 0, 0.5, 1]).acos; Symbol \foo .acos; // returns itself. this is used in Envelopes see Env . Function f = acos({ |x| sin(x) }); f.value((0 ...
-
... j -> numberOfObjects) IdentityBag [ \a , \b , \c , \c ].contents; Iteration: do(function) Evaluates function for each item in the IdentityBag. The function is passed two arguments, the item and an integer index. IdentityBag [1, 2, 3, 300].d ...
-
... like a stream that returns values for a limited (or infinite) number of times. Function-loop repeats the function forever. f = { 3.yield }; x = Routine({ f.loop }); 10.do({ x.next.postln }) Object-repeat(n) repeat to yield the object x = 5 ...
-
NAryOpFunction represent a n-ary oparation on a function superclass: AbstractFunction Operating on functions instead of numbers, what results is not a result of the calculation, but a structure that represents that calculation. // example a ...
-
... 0, 62, 64, 65, 67, 69, 71, 72], inf ) ).play ) ~finish Event.default contains a function bound to the Symbol 'finish' which is called for each new event generated in order to complete any computations that depend on the other values in the ...
-
... ; put(row, col, val) Put a value into the array. a.put(2,3, 72); a[2,3]; colsDo(function) rowsDo(function) Iterate over the columns, or the rows. Each row or column will be passed to function in turn. a.colsDo( _ .postln); a.rowsDo( _ .post ...
-
... label. Default value is nil. If nil, then no StaticText is created. action - A Function called when the value changes. The function is passed the EZText instance as its argument. initVal - The value to initialize the EZText with. initActio ...
-
Pfuncn function pattern of given length superclass: Pattern Pfunc(func, repeats) Returns a stream that returns values from the func. func - stream function repeats - end after this number of times See also: Pfunc // example ( var a, b, c; a ...
-
... .interpretPrint( "123 + 4000" ); compile(aString) Compile a String and return a Function. ( z = this .compile( "(123 + 4000).postln" ); z.postln; z.value; ) compileFile(pathName) Reads the file at pathName, compiles it and returns a Functio ...