Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (996) Code (19) Doc (190) Help (49) Quark (724) Plugin (14) SCDoc ↗ Forum ↗ Google ↗
  1. MIDIClock Quark

    ... ; },{ port = MIDIOut.new(0,MIDIClient.destinations[0].uid); }); if(port.isNil,{ Error("Device not found " + deviceName + portName).throw; }); ^super.newCopyArgs(BeatSched.new(tempoClock:tempoClock),port) } play { var delta,songBeat = 0.0,qu ...

  2. MIDIClock Quark

    ... , { port = MIDIOut.new(0, MIDIClient.destinations[0].uid); }); if(port.isNil, { Error("Device not found " + deviceName + portName).throw; }); ^super.newCopyArgs(BeatSched.new(tempoClock:tempoClock), port) } play { var delta, songBeat = 0.0, ...

  3. MasterUI Quark

    ... rightMasterIndicator.value = rmsR; rightMasterIndicator.peakLevel = peakR; } { |error| if(error.isKindOf(PrimitiveFailedError).not) { error.throw } }; }.defer; }, ("/MixerMasterOutLevels").asSymbol, Server.local.addr).fix; } }

  4. Chucking Quark

    ... emp; if(index.size == 0) { this.put(index, temp = super.new.prInit(index)); } { Error("Index must not be a collection when creating a new object").throw; }; ^temp } *put { |index, member| // might need to extend the array so .put will succe ...

  5. Mouse Doc

    ... |mouse, x| x.round(0.0001).postln }); // try to post x and y - but forgot y -> error // -> posts "Mouse(\a).action failed." Mouse(\a, { |mouse, x| [x, y].round(0.0001).postln }); // see the error Mouse(\a).doAction; // fix it Mouse(\a, { | ...

  6. SinTone Plugin

    ... s sin values based on the sin functiom (rather than table lookup). More CPU, no error SinTone : UGen { *ar {arg freq = 440, phase = 0, mul = 1, add = 0; ^this.multiNew('audio', freq, phase).madd(mul, add) } }

  7. BufferQueryQueue Quark

    ... pletionFunc fails the queue gets stuck try { completionFunc.value(buffer); } { |error| error.reportError; "Error occurred during buffer load completionFunc. Continuing with next file." .warn; }; queue.removeAt(0); // drop first item from qu ...

  8. JSONlib Quark

    ... ject.isKindOf(Dictionary) or: (object.isKindOf(SequenceableCollection))).not) { Error("Can only convert a Dictonary/Event/Array to JSON but received %".format(object.class)).throw }; ^this.new(postWarnings, customEncoder: customEncoder).prC ...

  9. ViewTester Quark

    ... ss for testing views on windows. ideally should leave window open on failure or error */ ViewTester : UnitTest { var w; var <>leaveWindowsOpen = false; setUp { w = Window.new; if(leaveWindowsOpen,{ w.front }) } tearDown { if(leaveWindowsOpe ...

  10. extInteger Quark

    ... ries(fftHalfSize, 0, step) ++ Array.series(fftHalfSize, nyquist.neg, step) }, { Error("fftsize % is not a power of two!".format(this)).throw; }) } /* rfft helper */ // the receiver is rfft.real.size or rfft.imag.size rfftFreqs { arg sampleR ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow