Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... e| ^super.new.value_(value) } value_ { |v| v.isNumber.if({ value = v }, { MethodError("Value of a Rational must be a number", this).throw }) } // implements all basic math operations composeUnaryOp { arg aSelector; var out; ^(out = value.pe ...

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

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

  4. MasterUI Quark

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

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

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

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

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

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

  10. broadcast_test Quark

    ... t it here! var id = 10000.rand; var ok = false; if(NetAddr.langPort != 57120) { Error("restart supercollider. langport != 57120").throw }; NetAddr.broadcastFlag = true; n = NetAddr(broadcastIP, 57120); OSCresponder(nil, '/broadcastPing', { ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow