-
... n SuperCollider recompiles or starts. The default filename is "/archive.sctxar" Examples // make a storage place for various objects: q = (); // Event q[ \a_long_array ] = Array .rand(128, 0.0, 1.0); q[ \pi_squared ] = pi * pi; q[ \favourit ...
-
... this for you, and returns a Synth object which you can then manipulate. See the example below. Another important distinction is between Synth in SC2 and Synth in SC3. The latter is a client-side object which represents a synth node on the s ...
-
... ect , pvcalc , and pvcalc2 processes. You're welcome to use it on its own - the example below shows basic usage. But most people won't typically need to use it directly. ( s.boot.doWhenBooted{ c = Buffer .read(s, "sounds/a11wlk01.wav" ); } ...
-
... 0.1pi)*0.5+0.5; }.defer; }); 1.yield; w.close; }); SystemClock .play(r); ) This example is only to show how to make calls to Cocoa/GUI when scheduling with the SystemClock. If you only wish to control the GUI, use AppClock.
-
... can still call or override these as needed. doesNotUnderstand (selector, args) Examples ////////// Simple example ( w = SCWindow ( "Simple QC Test" ).front; b = SCButton (w, Rect (0, 0, 150, 20)) .states_([[ "pick another QC file" ]]) .act ...
-
... able to do something that is otherwise impossible in the language.) For a quick example, consider a routine that is supposed to multiply the input value by two. First, the wrong way, assuming that everything is done by the function argument ...
-
... i of different sequences of events) you can use TempoClock . A simple SC2 Spawn example is shown below, followed by its translation into SC3 style code. // This will not execute in SC3 ( Synth .play({ Spawn .ar({ EnvGen .ar(Env.perc) * SinO ...
-
... ramChangeResponder See "Playing notes on your MIDI keyboard" below for a simple example using the note-on and note-off responders. Receiving MIDI input: MIDIIn MIDIIn has a number of class variables holding functions to be evaluated when a ...
-
... Server in intensive for the CPU. Poll should be used for debugging purposes. // examples { Duty .kr(0.5, 0, Dpoll ( Dseries (0, 1, inf ) * 2)); 0.0 }.play; // posts only when cursor is in right half of the screen { Duty .kr(0.5, 0, Dpoll ( ...
-
... e chain, removing empty dictionaries as it goes. This is slower but cleaner. // Example of the difference between removeAt and removeEmptyAt m = MultiLevelIdentityDictionary .new; m.put( \a , \b , \c , 1); m.removeAt( \a , \b , \c ); m // n ...