Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (747) Code (14) Doc (370) Help (95) Quark (257) Plugin (11) SCDoc ↗ Forum ↗ Google ↗
  1. Semaphore Help

    ... 100, 200, 300], "thread 1>" ); rrand(1, 3).wait; } }; // e.g. set the values to floats k = Routine { 0.5.wait; inf .do { |i| useAndModify.value([pi, 0.5pi, 2pi], "thread 2>" ); rrand(1, 5).wait; } }; u.play; k.play; );

  2. Classes Help

    ... atomic value. Classes whose instances consist of an atomic value are Integer , Float , Symbol , True , False , Nil , Infinitum , Char , Color . Instance variables declaration lists occur after the open curly bracket of the class definition ...

  3. Shaper Help

    ... for (integer part -1) and (1+frac)) due to some efficient maths for integer to float conversion in the underlying C code.

  4. EnvGen Help

    ... ), timeScale: 0.1 ) * SinOsc .ar(440, 0, 0.3) }.play; ) // an .ir rate input, a float or an ir rate ugen like Rand would work ( { EnvGen .kr( Env .asr( 0.1, 1.0, 0.5, \welch ), 1.0, Rand (0.1, 1.0), timeScale: 0.1 ) * SinOsc .ar(440, 0, 0.3 ...

  5. 9_BinaryOp_synthesis Help

    ... frequency between [67.0.rrand(2000), 67.0.rrand(2000)], // low.rrand(high) ... floating point values 0, n.reciprocal // scale the amplitude of each sine wave // according to the value of n ) * EnvGen .kr( // put an envelope on each of the ...

  6. Understanding-Errors Help

    ... eger Arrays can be indexed only with integers (or, in builds since August 2004, floats). Solution: use .asInteger—note that if the object cannot be converted into an integer, you'll get a "Does not understand" error! #[0, 1, 2].at(\1.asInte ...

  7. Control-Structures Help

    ... uated if true. The switch statement will be inlined if the test objects are all Floats, Integers, Symbols, Chars, nil, false, true and if the functions have no variable or argument declarations. The inlined switch uses a hash lookup (which ...

  8. SimpleNumber Help

    ... .wait; "No you didn't" .postln; 2.wait; (1..).do { |i| "yes I did" .postln; i.asFloat.rand.wait; "no you didn't" .postln; i.wait } } ) waitUntil like wait, only specify a time (measured in beats of the current thread's clock) (see Routine ) ...

  9. String Help

    ... trings beginning with non-numeric characters return 0. "4" .asInteger.postln; asFloat Return a Float derived from the String. Strings beginning with non-numeric characters return 0. "4.3" .asFloat.postln; asSecs Return a Float based on conv ...

  10. 13 Help

    ... nested fashion. Patches can be built dynamically and parameterized not just by floating point numbers from a static score, but by other graphs of unit generators as well. Or you can construct patches algorithmically on the fly. This kind o ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow