Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (100) Code (6) Doc (13) Help (1) Quark (80) SCDoc ↗ Forum ↗ Google ↗
  1. AutomationGui Quark

    ... w is created by me, take all space // in the window. bounds = nil; }; // simple hack. If the window class' name starts with a // J as in JSCWindow, we don't need to defer GUI signals. // see automation.defer(). if (("" ++ win.class)[0] == $ ...

  2. ddwFilterPatterns Quark

    ... ^Pseq(outputs[level], 1).embedInStream(inval) } { // mondo sucko that I have to hack into the List outputs.array = outputs.array.extend(max(level+1, outputs.size)); outputs[level] = List.new; if(level > 0) { r { |inval| this.recurse(inval, ...

  3. HrPresetMorph Quark

    ... etList.items.removeAt(presetList.value); presetList.items = presetList.items; //hack? to .refresh does nothing... } removeFromSurface {|argSurfaceItem| canvasItems.remove(argSurfaceItem); argSurfaceItem.removeSelf; surfaceView.refresh; } no ...

  4. extStoreOn-fixed Quark

    ... ts. // Then users can do "p.document2" and get a working code string. // It's a hack, but I'm under some logistical constraints. + AbstractPlayControl { storeOn2 { | stream | source.storeOn2(stream) } } + Symbol { isBasicOperator { ^#['+', ...

  5. misc-perc Quark

    ... rParmStreams = ~instrParms.collect(_.asStream); Pchain( // incredibly pointless hack follows Pfunc { |ev| var i = ev[\bufIndex]; if(~instrParms[i] !== ~saveInstrParms[i]) { ~saveInstrParms[i] = ~instrParms[i]; ~instrParmStreams[i] = ~instrP ...

  6. JITModPatch Quark

    ... prSave { |p| var file = CollStream.new, handle; var text, getDoc = { |cond| // hacking into Document internals a bit // the backend still exists for this, just "hidden" // in the official Document interface // Windows sometimes loses Docum ...

  7. mobile-objects Quark

    ... , time, addr, recvPort| if(~rdepth < 50) { ~rdepth = ~rdepth + 1; // pretty bad hack: this is the best way I can think of // for the GUI slider manager to reach this link object if(msg.isKindOf(Dictionary)) { switch(msg[\what]) { \getCtlVal ...

  8. RedBMP Quark

    ... g/255, b/255, a/255); if(a==0, {cnt= cnt+1}); }; }; if(cnt==(width*height), { //hack. do not know why some images have alpha 0 (this.class.name++": all alpha was 0. flipping.").warn; data= data.collect{|c| c.alpha= 1}; }); }, {(this.class.n ...

  9. numberExtras Quark

    ... .collect{|p| p.highestPower(this, pitchRange)} } // this is like asFraction but hacked in order to handle rounding errors for // harmonic interpretation of periodic decimals (0.333 will be 1/3 and not 333/1000) asRatio {|denominator = 100, ...

  10. preprocessor Quark

    ... patString is the abstract generator's only argument ], name: "" )); // moderate hack: I should wrap the string in a patstring -> divider -> generator // but I'm lazy wrapArray = true; }; parsed.patStringNode.setTime(0, bpb); // write the co ...

prev 1 2 3 4 5 6 7 8 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow