triggerbox: use correct API to track tempo
This commit is contained in:
parent
dd4e495d90
commit
4d5cf43789
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user