-
... ltGetDrag The method called by default when initiating a drag. Returns object . Examples ( s.waitForBoot({ //only needed if you are using sound w= Window .new.front; // store various kinds of objects in the drag source // a string source a= ...
-
... argument. The function should return true or false. For instance, the following example would respond to note on messages from any port, channels 2 and 7 only, even numbered note numbers only, and only velocity values greater than 50. NoteO ...
-
... mber or other math object and a Symbol is to return the Symbol. This allows for example operations on lists of notes which contain 'rest's to preserve the rests. Pseq ([1, 3, \rest , 2, 4] + 8); applyTo(firstArg ... args) Use the symbol as ...
-
... e Suggested Exercise: Experiment with scoping and plotting some of the Function examples from earlier sections, or some Functions of your own creation. Try experimenting with different duration or zoom values. ____________________ This docu ...
-
... ////////////// Global variables The '~' character before aSynth in the previous example defines a global variable. An advantage to using a global variable is that it doesn't have to be declared explicitly, as in var aSynth; // variables wit ...
-
... wise continue. signal unblock the semaphore, reschedule next pending thread. // example // allow only one thread ( c = Semaphore (1); fork { c.wait; "thread 1> now I am doing something for 10 seconds. Block the semaphore meanwhile." .postln ...
-
... . - Stopping a task and restarting it quickly may yield surprising results (see example below), but this is necessary to prevent tasks from becoming unstable if they are started and/or stopped in rapid succession. Task.new(func, clock) func ...
-
... "seed" number several times, you get the same sequence of random numbers. (See example below, randomSeed ) Create single random numbers: 1. Between zero and <number>: 5.rand // evenly distributed. 1.0.linrand // probability decreases linea ...
-
... f you do not need an input sound file, then put "_" for the file name as in the example above. For details on other valid arguments to the scsynth app see Server-Architecture . This could be executed in SC as: "./scsynth -N Cmds.osc _ NRTou ...
-
... e action . doMetaAction Not normally called directly (called by the primitive). Examples // basic ( n=20; w = Window .new.front; m = MultiSliderView (w, Rect (10,10,n*13+2,100)); //default thumbWidth is 13 m.value= Array .fill(n, { |v| v*0. ...