I’m trying to tidy up the error message because they are often longer than the post window and hide the important parts all the way at the top, I’ve also got it to show where the error might be. What do you think? is there anything else that should be here? should I format it differently?
Please scroll all the way down in the code box as you would see the bottom first in the post window.
When running this code…
(
SynthDef(\asdf, {
SinOsc.ar();
SinOsc.ar();
SinOsc.ar();
SinOsc.ar();
SinOsc.ar();
SinOsc.ar();
2352.asdf([1, 2, 3], \asdf)
}).add
)
…the current error message generated is (scroll to the bottom first)…
_______________________________________________________________
Protected backtrace for DoesNotUnderstandError...
PROTECTED CALL STACK:
... I haven't squished the protected bracktrace yet ...
Backtrace for DoesNotUnderstandError
0: Object:throw - 0x560630819240
args this = DoesNotUnderstandError.new;
1: Function:protect - 0x560631c0a000
args this = { "open Function" }, handler = { UGen.buildSynthDef = nil; };
vars result = DoesNotUnderstandError.new;
2: SynthDef:build - 0x5606324c8d00
args rates = nil, prependArgs = nil, this = SynthDef('asdf'),
ugenGraphFunc = { SinOsc.ar(); SinOsc.ar(); SinOsc.ar(); SinOsc.ar(); SinOsc.ar(); SinOsc.ar(); 235 ... };
3: < closed FunctionDef > - 0x560633a272a8
4: Interpreter:interpretPrintCmdLine - 0x560634652c40
args this = Interpreter.new;
vars doc = nil, res = nil, ideClass = ScIDE,
code = "( SynthDef(\\asdf, { SinOsc.ar(); SinOsc.ar(); SinOsc.ar(); SinOsc.ar(); SinOsc.ar ... ",
func = { SinOsc.ar(); SinOsc.ar(); SinOsc.ar(); SinOsc.ar(); SinOsc.ar(); SinOsc.ar(); 235 ... };
5: Process:interpretPrintCmdLine - 0x5606345e8d40
args this = thisProcess;
Possible offending code in frame 4:
(
SynthDef(\asdf, {
SinOsc.ar();
SinOsc.ar();
SinOsc.ar();
SinOsc.ar();
SinOsc.ar();
SinOsc.ar();
2352.asdf([1, 2, 3], \asdf);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ maybe this was a mistake?
}).add
)
Suggestion: Perhaps you misspelled 'asin', or meant to call 'asdf' on another receiver?
ERROR: Integer '2352' did not understand method 'asdf' and was called with: [1, 2, 3], 'asdf'
The code is a mess right now, and there are some weird formatting bugs, but eventually, I’ll turn it into a quark if people want to test it before I make a PR (if this is deemed an improvement).