13
0

triggerbox: use correct API to track tempo

This commit is contained in:
Paul Davis 2021-11-12 14:22:03 -07:00
parent dd4e495d90
commit 4d5cf43789

View File

@ -1820,8 +1820,7 @@ TriggerBox::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp
Temporal::Beats start_beats (start.beats()); Temporal::Beats start_beats (start.beats());
Temporal::Beats end_beats (end.beats()); Temporal::Beats end_beats (end.beats());
Temporal::TempoMap::SharedPtr tmap (Temporal::TempoMap::use()); Temporal::TempoMap::SharedPtr tmap (Temporal::TempoMap::use());
Temporal::TempoPoint const & tempo (tmap->tempo_at (start)); const double bpm = tmap->quarters_per_minute_at (start);
const double bpm = tempo.quarter_notes_per_minute ();
uint64_t max_chans = 0; uint64_t max_chans = 0;
bool first = false; bool first = false;