Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... ze: 2048, ratio: 2, numOscs: 5, detune: 1.008 ) * 0.1).dup }.play; ) a.free; // hacking a triangle --> sawtooth wavetable ( f = SoundFile.openWrite("~/tri-saw.wav".standardizePath, "wav", "float", 1, 44100); if(f.notNil) { var wt = Signal.n ...

  2. VarDiffString Quark

    ... Array(s.size + t.size + 1); while{ (sourceIndex >0) && (targetIndex >0) } { // hack in a preference for contiguous characters // so txtest -> test takes txTEST rather than TxtEST if (s[sourceIndex-1] == t[targetIndex-1]) { sourceIndex = so ...

  3. PitchCircle Quark

    ... the lines steps.do({ |i| Pen.moveTo(0@((radius * 0.92).neg)); // formally 1.08, hack to allow SpatioScope to overlay Pen.lineTo(0@((radius * 1.06).neg)); Pen.moveTo(0@0); Pen.color = Color.black; Pen.stroke; Pen.rotate((2pi/steps)); }); } / ...

  4. Granular Sampling GUI Demo 1 by bruno (Bruno Ruviaro) Code

    ... iFrames); 2.do{centerPosSlider.setSpanActive(loSlider, hiSlider)}; // 2.do = hack... }; // Open Button openButton = Button.new(win, Rect(460, 20, 110, 30)) .states_([["open new file", Color.black, Color.gray]]) .action_({ ...

  5. 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] == $ ...

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

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

  8. 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 { ^#['+', ...

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

  10. GMKeyboard Doc

    ... ctionality is currently unavailable when using computer keyboard (unless using 'hacks'), due to the current implementation of Qts keyboard response to held keys. See https://github.com/supercollider/supercollider/issues/6466 . playKey , sus ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow