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 temporal: fix error in operator>> for BBT_offset 2021-08-31 22:33:33 -06:00
beats.cc Fix --no-nls compilation 1/2 -- #8802 2021-09-27 16:28:44 +02:00
debug.cc add new debug bit for Temporal grid stuff 2021-08-13 12:51:32 -06:00
enums.cc libtemporal: add operator<<() for ratio_t 2021-08-13 12:51:32 -06:00
range.cc include temporal/range.cc as source module 2021-08-13 12:51:30 -06:00
superclock.cc Initial changes needed for building libtemporal with MSVC 2021-08-29 11:03:58 +01:00
tempo.cc tempomap: reimplement TempoMap::bbt_walk() 2021-11-17 15:59:03 -07:00
test2.cc tweak test code to check int62_t::min and flag bit 2021-08-13 12:51:30 -06:00
test.cc basic work on a Tempo object that avoids (almost) all floating point arithmetic 2021-08-13 12:51:28 -06:00
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 libtemporal: needs "OSX" pseudo-lib to pick up required macOS flags 2021-08-13 12:51:35 -06:00