[OSC_dev] Re: OSC_dev Digest, Vol 45, Issue 1

Robin Davies rerdavies at rogers.com
Fri Oct 19 01:59:19 PDT 2007


> From: L Wieder
> I just used integers because they are faster to calculate with and there
> are no rounding
> errors when adding / subtracting. But maybe float would be better, who
> knows.

But integers aren't faster to calculate with. No modern software synth uses
integer math. So any integer parameter is immediately going to get loaded
into the FPU, and then you have to add and multiply to scale it into useable
range.

As for rounding errors, if your pan range is 0 - 2147483647, what's the
center position value? Ooops. 1073741823.5. Looks like a rounding error to
me.

Surely, one of the major points of OSC is human friendlines. If machine
friendliness was the point, it would look a whole lot different.

MIDI is evil. Possibly one of the worst things that ever happened to
computer music. And integers are evil too. imho.




More information about the OSC_dev mailing list