Paul Davis
940d8844e3
::snap_to() was intended to round a Beats value to the nearest multiple of another Beats value. It did not do that, but instead rounded down. Worse, it used Beats::operator/ which in turn uses int_div_round(), which is incorrect for a situation where we need integer truncation. The changes fix the actual arithmetic and add 2 variant functions so that the API includes round down, round up and round to nearest. |
||
---|---|---|
.. | ||
appleutility | ||
ardour | ||
ardouralsautil | ||
audiographer | ||
auscan | ||
backends | ||
canvas | ||
clearlooks-newer | ||
evoral | ||
fluidsynth | ||
fst | ||
gtkmm2ext | ||
hidapi | ||
libltc | ||
lua | ||
midi++2 | ||
panners | ||
pbd | ||
plugins | ||
ptformat | ||
qm-dsp | ||
surfaces | ||
temporal | ||
vamp-plugins | ||
vamp-pyin | ||
vfork | ||
vst3 | ||
waveview | ||
widgets | ||
zita-convolver | ||
zita-resampler |