-
... ag has been recieved. Performs valueAction_() using currentDrag as an argument. Examples ( w = Window .new.front; a = TextField (w, Rect (10, 10, 150, 20)); a.string = "hi there" ; a.action = { arg field; field.value.postln; }; ) // does no ...
-
... urns whether the scheduling queue is empty. clear clear the scheduling queue // example: a = Scheduler ( SystemClock ); a.sched(3, { "now it is 3 seconds." .postln; nil }); a.sched(5, { "now it is 5 seconds." .postln; nil }); a.sched(1, { " ...
-
... t to system input (either by hardware of by software) to rout it to the server. examples: Speech .init(2); Speech .channels[0].speak( "hallo" ); Speech .channels[0].isActive; Speech .channels[0].voice_(3); Speech .channels[0].speak( "hallo" ...
-
... ound file b = Buffer .read(s, "sounds/a11wlk01.wav" ); // simple playback (more examples: see BufRd) // Start and end here are defined as 0 and the number of frames in the buffer. // This means that the Phasor will output values from 0 to n ...
-
... sizes) Fills an ArrayedCollection with a counter. See J_concepts_in_SC for more examples. Array .iota(2, 3); Array .iota(2, 3, 4); *fill2D(rows, cols, function) Creates a 2 dimensional ArrayedCollection of the given sizes. The items are det ...
-
... E the mul slot, and you may need to update code to account for this difference. Examples: s.boot; ( var winenv; b = Buffer .read(s, "sounds/a11wlk01-44_1.aiff" ); // a custom envelope winenv = Env ([0, 1, 0], [0.5, 0.5], [8, -8]); z = Buffe ...
-
... An instance of Float . fixedAspectRatio_ (bool) bool - An instance of Boolean . Examples ( w = Window ( "mov" ).front; b = Button (w, Rect (0, 0, 150, 20)) .states_([[ "pick a file" ]]) .action_({ File .openDialog( "" , { |path| m.path_(pat ...
-
... implementation y.postln; // ; the id could be stored in a preferences file for example GUI .swing; // now switch back to the kit implementation with identifier y GUI .fromID( y ); GUI .current.id.postln; // --> cocoa The *use and *useID me ...
-
... ->Utilities folder) to search for all occurences of a given word or phrase. For example, to see all documents that use the LFSaw class, evaluate (in the Terminal application) grep -r LFSaw /Applications/SuperCollider_f Because lines in the ...
-
... attern at that key (if none is there, a default pattern is created) see Pdef // example: ( SynthDef ( "Pdefhelp" , { arg out, freq, sustain=1, amp=1, pan; var env, u=1; env = EnvGen .kr( Env .perc(0.01, sustain), 1, doneAction:2); 5.do { va ...