-
... Object.findRespondingMethodFor( selector ) } prettyPrintIndent { |indent = 0| ^String.fill( indent, $\t ); } prettyPrintOn { |stream, indent = 0| if( this.sublassMethodExistsFor( \storeOn ) ) { stream << this.prettyPrintIndent( indent ); t ...
-
... ew with defaults"); this.assertEquals(Date(2010, day: 15, minute: 30).asSortableString, "20100115003000", "new with defaults"); e = nil; try { Date(month: 7) } { |err| e = err }; // ERROR: year must be a valid Integer this.assertEquals(e.cl ...
-
... textConnection; var <guiEnv; var prDefaultAction, <>wdgtActions, <background, <stringColor, <alwaysPositive = 0.1; var prMidiMode, prMidiMean, prCtrlButtonBank, prMidiResolution, prSoftWithin; var prCalibrate, netAddr; // OSC-calibration e ...
-
... y) * (orient.cos)) + (gOrigin.y ); Point(rx,ry) }; printText = { | image, x, y, string, fontSize | var font = Font("Monaco", fontSize); image.draw{ Pen.stringAtPoint(string, x@y, font, Color.black); }; win.refresh; }; storeGraphicUndo = { | ...
-
... or does not matches any of the `types`, then `false` is returned. Otherwise, a string of the type that matched is returned. The `request` argument is expected to be a Node.js HTTP request. The `types` argument is an array of type strings. ...
-
... ange map { |inval| ^items.clipAt( spec.map( inval/size ).asInteger ); } // from string to number unmap { |inval| var index = items.indexOfEqual( inval ); if ( index.notNil ){ ^(spec.unmap( index ) * size).asInteger; }; ^nil; } asSpec { ^thi ...
-
... { /* this is just a container for an SC code Document either as a path or as a string. a Document in sc can only exist if the document window is open, so this container allows it to be evaluated even from disk or if being edited by another ...
-
... eset, 1, TriggerSpec("reset") ], [ \next, 1, TriggerSpec("next") ], [ \id, nil, StringSpec(), false ], [ \u_spec, [0,1].asSpec, ControlSpecSpec(), true ], [ \u_prepared, false, BoolSpec(false), true ] ].collect(_.asArgSpec); argSpecs.do(_.m ...
-
... eset, 1, TriggerSpec("reset") ], [ \next, 1, TriggerSpec("next") ], [ \id, nil, StringSpec(), false ], [ \u_spec, [0,1].asSpec, ControlSpecSpec(), true ], [ \u_prepared, false, BoolSpec(false), true ] ].collect(_.asArgSpec); argSpecs.do(_.m ...
-
... t] = nil }); } postTimeline { var lineLength = 80; "\n\n".postln; { |i| (i+1).asString.padLeft(10, ".") }.dup(lineLength div: 10).join.postln; score.values.do { |e| e.use { var t0 = ~startTime * 10 - 1; var t1 = ~endTime - ~startTime * 10 - ...