[sdiy] In praise of the ATM STM32F303

Olivier Gillet ol.gillet at gmail.com
Fri Feb 12 17:32:43 CET 2016


> The advantage of ints is that you never have to check for phase overflow :) What if you turn the phase into an int32_t (and only the phase)?

I don't think it would be very useful:
* For the samples before the transition, the floating point code
doesn't have to check for overflows anyway.
* For the samples surrounding the transition, you have to check for
the transition, even with integers (phase < phase_increment...)
* If you start using integers for the phase accumulator, you have to
do the mixing and the polyblep correction with integers too, and I
doubt it'll be faster. Or you'll waste cycles converting integers to
floats.



More information about the Synth-diy mailing list