-
... bject, -999); // so first time nil updates countView = StaticText(zone, 230@20).string_("0 citizens, 0 servers, 0 synthdefs") .font_(Font("Helvetica", 14)) .align_(\center); StaticText(zone, 57@20).string_("show:") .align_(\center); Button( ...
-
SCRequestString part of wslib A string request window class SCRequestString ( "john doe" , "please enter your name" , { |str| ( "your name is " ++ str).postln }); SCRequestString ( default, question, action ) the action function receives th ...
-
appleScript execute an apple script part of wslib String.appleScript Execute an apple script using the osascript unix command. ( "tell application \"Finder\" activate reveal POSIX file % end tell" .format( String .scDir.quote ).appleScript; ...
-
... Text(scrollView, Point( flow.indentedRemaining.width, 17 )).font_(shortCutFont).stringColor_(staticTextColor).string_(dictName); flow.nextLine; editArea = TextView(scrollView, Point( flow.indentedRemaining.width-15, height )).font_(textFiel ...
-
... SatieUnitTest { var jsonPath; setUp { var dataDir = this.class.filenameSymbol.asString.dirname +/+ "data"; jsonPath = ( valid: dataDir +/+ "valid.json", invalid: dataDir +/+ "invalid.json", ); } test_SatieJson_stringify_booleans { [ [true, ...
-
+ String { // using sips (unix application built into MacOSX) // convert your web images right from SC.. resampleImage { |newMaxSize = 600, newName = \auto| var path, result; path = this.standardizePath; case { newName == \auto } { newName ...
-
... I.if({ // sfView.timeCursorPosition_((startTime * sf.sampleRate).round); // timeString.string_(startTime.asTimeString[3..10]); // cueOffsetNum.value_(0); // offset = 0; // }) } loop_ {arg val; var oldVal = loop; loop = val.asBoolean; if((ol ...
-
... 0)).action_{"test".postln}; v.drawFunc=v.drawFunc.addFunc({arg uview; var value_string = v.value.round(0.01).asString; var string_x; Pen.font = Font("Helvetica",11); string_x= (v.value*300).clip(4, 300-26); Pen.color = Color.white.alpha_(0. ...
-
... val, i| case {val.isInteger} { //integer res.add($i).add(val).add($e); } {val.isString} { //string res.add(val.size).add($:).add(val); } {val.isKindOf(Set)} { //dictionary res.add($d); val.asSortedArray.do{|a| res.add(this.encode([a[0].asSt ...
-
... = 4; formatFunc = { |value| "%/%".format( value, denom ) }; interpretFunc = { |string| if( string.includes( $/ ) ) { string = string.split( $/ ); denom = 2**(({ string[1].interpret }.try ? denom).log2.round(1).clip(0,10)); string = string[ ...