-
... .view.bounds.resizeBy(-20, -200), e, 10).resize_(2); SCStaticText (w, v.bounds).string_( " amplitude" ).resize_(2); x = SCEnvelopeEdit (w, v.bounds.moveBy(0, 200), f, 10).resize_(2); SCStaticText (w, x.bounds).string_( " frequency" ).resize ...
-
... ont; w.addFlowLayout; // store various kinds of objects in the drag source // a string source a= DragBoth (w, Rect (10,10,150,20)).align_( \center ) .background_(Color.rand) ; a.object= "drag us around" ; a= DragBoth (w, Rect (10,10,150,20) ...
-
... ackground_( Color .rand); q= SCStaticText (n, n.bounds.moveTo(0,0).insetBy(25)).string_((70+i).asAscii).align_( \center ); q.enabled= true ; q.font= Font .default.copy; q.background_( Color .rand); q.mouseDownAction={ n.background_( Color . ...
-
{ 10 + 6 * ~harry }.asCompileString; many objects understand .storeOn , which a way to post their string that is needed to reproduce them by compilation. sometimes one wants to store a certain configuration of a proxy space, which can be do ...
-
... ( -- attempt to match the preceding identifier to method names containing that string, and display a list of methods with their defining classes. Making a selection will insert a method template into your document. ( will also match classn ...
-
... y to search for (only useful if networked) textview allows for typing in search string. listview shows either all lineShorts, or the filtered lineShorts; selecting them in listview makes them come appear in post-doc window. ( h = History .n ...
-
... bar' Or by a preceeding backslash (then it may not include whitespace): \foo A String can be converted into a symbol: "arbeit" .scramble.asSymbol; Testing isClassName / isMetaClassName Answer whether the symbol can be a class name / meta c ...
-
... d true for Event . e = Environment [ 'someVariable' -> 5, 'printMe' -> { |self, string| string.postln } ]; e.know = true ; More typically, Events are used to define such prototypes because the syntax is simpler. e = (someVariable: 5, printM ...
-
... Synth ( "withControls" , [ \freq , 440, \beatFreq, 0.5, \mul , 0.1]); or as as strings (an array of characters) Synth ( "withControls" , [ "freq" , 440, "beatFreq", 0.5, "mul" , 0.1]); Either way, the pattern is [ controlName, value, contr ...
-
... line 1 and then some more in line 3 " ); f.close; ) // open file, read and put strings into array, close file. x = TabFileReader .read( "TabDelTest.sc" ).postcs; // can skip empty lines: x = TabFileReader .read( "TabDelTest.sc" , true ).po ...