-
... { ~eventTypes[~type].value(server); }, The function uses the value of ~ type to select a function from the Dictionary held in ~ eventTypes . The collection of eventTypes can be readily extended using *addEventType(key, function) . Here is a ...
-
... onary's superclasses, see e.g. Collection . do(func) collect(func) reject(func) select(func) // do, collect, reject, select d = Dictionary [ \a -> "hello" , \b -> "robot" , \c -> [1, 2, 3]]; d = (a: "hello" , b: "robot" , c: [1, 2, 3]); // ...
-
... degree , Pswitch (scaleSegments, Pseq ([ Pwhite (0, n-1, 4), Pwhite (0, n-1, 1).select( _ .odd)], inf )), \dur , 0.125 ).play; ) p.stop; Finite state machine (Pfsm, Pdfsm): A finite state machine is a way of associating an item with its pos ...
-
... h' pressing the esc key will kill a sheet if it has focus (i.e. is foremost and selected). Blocking and Multiple Sheets on the Same Window Each window can have only sheet attached to it at any given time. (You can however have sheets attach ...
-
... to write the help file. Default value is nil: in that case you are prompted to select a path by a dialog. After creation SC tries to reopen the file by calling undocumentedClass.openHelpFile, so the path should be searchable by SC. The fil ...
-
SelectXFocus mix one output from many sources superclass: Object The output is mixed from an array of inputs, linearly interpolating from a number of adjacent channels. A focus argument allows to control how many adjacent sources are mixed. ...
-
... it in the NumberBox }); a.action.value; ) // change the stepsize of the slider, selected via a PopUpMenu ( w = Window .new.front; a = [ "0" , "0.0625" , "0.125" , "0.25" , "0.5" , "1" ]; b = Slider (w, Rect (20, 100, 100, 20)) .action_({ c. ...
-
... size, size)); k.action_({ |v| v.value.postln; }); w.front; }; ) GUI .cocoa; // select cocoa gui f.value; GUI .swing; // select swing gui f.value; // GUI skins // default skin // GUI.skins.knob.default = ( // scale: Color.black.alpha_(0.3), ...
-
... ross Platform CocoaGUI SwingGUI Description Dialog CocoaDialog SwingDialog file selection dialog management Font SCFont JFont a font typeface description. Pen SCPen JPen custom drawing operations class MouseX MouseX JMouseX UGen. JMouseX fo ...
-
... nction to each return value from the pattern. Good for generic transformations. select(func): Preserve values from the output stream that pass the Boolean test; discard the rest. reject(func): Discard values from the output stream that pass ...