-
... ; },{ 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 ...
-
... |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, { | ...
-
... 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) } }
-
... 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 ...