Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (2937) Code (123) Doc (1095) Help (322) Quark (1383) Plugin (14) SCDoc ↗ Forum ↗ Google ↗
  1. UnaryOpFunction Help

    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 ...

  2. acos Help

    ... 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 ...

  3. IdentityBag Help

    ... 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 ...

  4. loop Help

    ... 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 ...

  5. NAryOpFunction Help

    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 ...

  6. Streams-Patterns-Events5 Help

    ... 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 ...

  7. Array2D Help

    ... ; 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 ...

  8. EZText Help

    ... 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 ...

  9. Pfuncn Help

    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 ...

  10. Interpreter Help

    ... .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 ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow