13
0
livetrax/libs/temporal
Robin Gareus 34e12a5d78
Fix grid when tempo marker is not on a mod_bar/beat_div
Previously the current iterator bbt was moved to p->bbt().

From then on, no grid line is reached if the point p is not on
a bar and mod_bar != 0 or the point is not on an expected beat_div.

e.g. when using bbt += mod_bar, and a tempo-change is at 5|2|0.
iterations continues 6|2|0 7|2|0  is_bar() is always false
and no more grid-lines were added.

Rather than trying
   bbt = round-up-to-next-grid-mod-div
and then finding the metric for that position, this
approach only does the latter using the already incremented
BBT position.
2023-01-11 00:25:23 +01:00
..
MSVCtemporal Further change needed for 'libtemporal' 2020-05-29 12:28:13 +01:00
temporal temporal: add optional with_reset arg to all map ::remove_*() methods 2022-12-20 21:54:05 -07:00
test confusing comments - just say no 2022-11-21 18:33:17 -07:00
bbt_time.cc temporal: fix a bug in BBT_Time::round_up_to_bar() 2022-08-03 10:59:29 -06:00
beats.cc temporal: fix a bug in BBT_Time::round_up_to_bar() 2022-08-03 10:59:29 -06:00
debug.cc temporal: add new debug bit for debug tracing just TempoMap::reset_starting_at() 2022-05-13 19:05:13 -06:00
enums.cc libtemporal: add operator<<() for ratio_t 2021-08-13 12:51:32 -06:00
range.cc Remove Range::squish debug information, used fixed modulo operation 2022-06-30 01:07:32 +02:00
superclock.cc increase superclock_ticks_per_second to provide integer handling for NTSC (following Facebook "flicks") 2022-10-13 18:05:49 -06:00
tempo.cc Fix grid when tempo marker is not on a mod_bar/beat_div 2023-01-11 00:25:23 +01:00
test.cc basic work on a Tempo object that avoids (almost) all floating point arithmetic 2021-08-13 12:51:28 -06:00
test2.cc tweak test code to check int62_t::min and flag bit 2021-08-13 12:51:30 -06:00
time.cc Fix remaining doxygen warnings (!) 2019-09-30 21:03:29 +02:00
timeline.cc temporal: fix various incorrect uses of ::samples() in audio time arithmetic 2022-12-07 11:13:49 -07:00
wscript More unit-tests updates 2022-10-01 16:57:12 +02:00