Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (2094) Code (114) Doc (526) Help (153) Quark (1294) Plugin (7) SCDoc ↗ Forum ↗ Google ↗
  1. extObject-asPrettyString Quark

    ... Object.findRespondingMethodFor( selector ) } prettyPrintIndent { |indent = 0| ^String.fill( indent, $\t ); } prettyPrintOn { |stream, indent = 0| if( this.sublassMethodExistsFor( \storeOn ) ) { stream << this.prettyPrintIndent( indent ); t ...

  2. TestDate Quark

    ... 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 ...

  3. CVWidget Quark

    ... textConnection; var <guiEnv; var prDefaultAction, <>wdgtActions, <background, <stringColor, <alwaysPositive = 0.1; var prMidiMode, prMidiMean, prCtrlButtonBank, prMidiResolution, prSoftWithin; var prCalibrate, netAddr; // OSC-calibration e ...

  4. MoscaGUI Quark

    ... 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 = { | ...

  5. README Quark

    ... 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. ...

  6. IdxItemsSpec Quark

    ... 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 ...

  7. MxDocument Quark

    ... { /* 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 ...

  8. StreamUMapDef Quark

    ... 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 ...

  9. StreamUMapDef Quark

    ... 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 ...

  10. Clothesline Quark

    ... 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 - ...

prev 41 42 43 44 45 46 47 48 49 50 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow