ardour/libs/temporal/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
..
bbt_time.h temporal: add to_string() converters for BBT_Offset 2021-08-31 16:45:44 -06:00
beats.h temporal: fix implementation of Beats::snap_to(), and add variants 2021-11-29 21:50:29 -07:00
debug.h add new debug bit for Temporal grid stuff 2021-08-13 12:51:32 -06:00
range.h Initial changes needed for building libtemporal with MSVC 2021-08-29 11:03:58 +01:00
superclock.h Revert "Fix div/zero, allow switching backends" 2021-09-15 17:52:53 +02:00
tempo-experiment.h first pass at integrating nutempo v1 with new 64 bit superclock/ticks representation 2021-08-13 12:51:28 -06:00
tempo.h tempomap: allow access to TempoMap::bbt_at () variant 2021-11-17 15:58:33 -07:00
time.h Fix remaining doxygen warnings (!) 2019-09-30 21:03:29 +02:00
timeline.h temporal: fix construction of timepos_t and timecnt_t with max_sample{pos,cnt} 2021-11-22 10:35:52 -07:00
types.h remove unnecessary boost header (we have our own ratio_t) 2021-10-14 13:12:31 -06:00
types_convert.h add missing file 2021-08-13 12:51:29 -06:00
visibility.h libtemporal: changes derived from converting libardour 2021-08-13 12:51:28 -06:00