Open dkmayer opened 4 years ago
Integrator_Ctor() ends with Integrator_next(unit, 1);
. So in the above reproducer, the ctor sets the running total to 1.
Then, the normal pass through UGens calls _next again, adding 1 a second time.
So this is another one of those "we haven't decided how the pre-sample should really be set, so it's basically up to whatever was convenient at the time" weird initialization bugs.
In the immediate case, we probably should just set the first output sample to the first input, and not call next at all.
I think Mike is (gradually) working on this: https://github.com/mtmccrea/supercollider/projects/1
OSX 10.13.6, SC 3.11.0
https://www.listarc.bham.ac.uk/lists/sc-users/msg67175.html