I’m making a node editor for scsynth. This makes SC more accessible for people who know nothing about synths. Should I automatically wrap the output bus with LeakDC + Limiter to protect people harming their speakers when playing with this system?
It uses ServerTree.add(treeFunc, server);
to permanently add some processes that can help tame output.
e.g.
from:
\safeLimit, {
var limitCtl = \limit.kr(limit);
var mainOuts = In.ar(0, numChans);
var safeOuts = ReplaceBadValues.ar(mainOuts);
var limited = Limiter.ar(safeOuts, limitCtl);
ReplaceOut.ar(0, limited);
}
So, besides Limiter and LeakDC, also have a look at the ReplaceBadValues UGen, which intends to cicumvent things like filters blowing up due to unexpected input …
Good luck !