supercollider/supercollider — pull request #870 by blacksound (2013-06-19 17:21:58+00:00)
Title: normalizeSum fix, divide values by abs sum

Should divide by absolute sum in primitive code instead?

(
var ar, correctNormalizeSum;
correctNormalizeSum = {arg val; val / val.sumabs};
ar = [-3.7, 3.8].normalizeSum;
"current primitive code: %\n".postf(ar.normalizeSum);
"should be %\n".postf(correctNormalizeSum.value(ar));
)