-
... 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; );
-
... 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 ...
-
... for (integer part -1) and (1+frac)) due to some efficient maths for integer to float conversion in the underlying C code.
-
... ), 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 ...
-
... 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 ...
-
... 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 ...
-
... 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 ...
-
... .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 ) ...
-
... 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 ...
-
... 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 ...