-
... 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 ...
-
... ; },{ 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 ...
-
... , { 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, ...
-
... rightMasterIndicator.value = rmsR; rightMasterIndicator.peakLevel = peakR; } { |error| if(error.isKindOf(PrimitiveFailedError).not) { error.throw } }; }.defer; }, ("/MixerMasterOutLevels").asSymbol, Server.local.addr).fix; } }
-
... 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 ...
-
... 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 ...
-
... 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 ...
-
... 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 ...
-
... 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 ...
-
... 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', { ...