13
0

triggerbox: fix various errors caused by not setting transition_bbt

In cases where no quantization is done, transition_bbt was not set,
and this led to expected_end_sample being incorrect.
This commit is contained in:
Paul Davis 2022-01-20 13:55:36 -07:00
parent 76c62139c8
commit 68c87c3f29

View File

@ -703,6 +703,7 @@ Trigger::maybe_compute_next_transition (samplepos_t start_sample, Temporal::Beat
transition_samples = start_sample;
transition_beats = start;
transition_time = timepos_t (start);
transition_bbt = tmap->bbt_at (transition_beats);
} else if (q.bars == 0) {
Temporal::Beats transition_beats = start.round_up_to_multiple (Temporal::Beats (q.beats, q.ticks));
transition_bbt = tmap->bbt_at (transition_beats);