13
0
livetrax/libs/temporal
Paul Davis 940d8844e3 temporal: fix implementation of Beats::snap_to(), and add variants
::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.
2021-11-29 21:50:29 -07:00
..
MSVCtemporal
temporal temporal: fix implementation of Beats::snap_to(), and add variants 2021-11-29 21:50:29 -07:00
bbt_time.cc
beats.cc
debug.cc
enums.cc
range.cc
superclock.cc
tempo.cc tempomap: reimplement TempoMap::bbt_walk() 2021-11-17 15:59:03 -07:00
test2.cc
test.cc
time.cc
timeline.cc temporal: fix construction of timepos_t and timecnt_t with max_sample{pos,cnt} 2021-11-22 10:35:52 -07:00
wscript