sambean ·
Hey there..
I was just looking for clarification about how rounding to integers is going to be handled synthmaker..
At the moment I'm a bit confoosed, it seems that the rndint() code function rounds to the nearest interger and not down, as it states in the documentation (I mentioned this before somewhere..)
What about the poly to polyint.. how does this round?
Is it not the normal convention to always round down?
I'm asking this now because we are having more sample based osms appearing with peeps using interpolation..
At the moment when rounding I use
out = in - 0.499999999; out = rndint(out);
to round down ( the 0.499.. instead of 0.5 is to stop interger values rounding to the lower one.. e.g 20 -> 19.5 -> 19..)
Cheers
Sam