Skip to content

Commit

Permalink
fix MIDI Clock output times by using the correct call to get tempo at…
Browse files Browse the repository at this point in the history
… a position

Could be worth a double check of the codebase/hiding the API that ignores ramping
  • Loading branch information
pauldavisthefirst committed Oct 2, 2024
1 parent adc9d9e commit 52336eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/ardour/ticker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ MidiClockTicker::tick (samplepos_t start_sample, samplepos_t end_sample, pframes
double
MidiClockTicker::one_ppqn_in_samples (samplepos_t transport_position) const
{
Tempo const & tempo (TempoMap::use()->metric_at (timepos_t (transport_position)).tempo());
const double samples_per_quarter_note = tempo.samples_per_quarter_note (_session.nominal_sample_rate());
TempoPoint const & tempo (TempoMap::use()->metric_at (timepos_t (transport_position)).tempo());
const double samples_per_quarter_note = superclock_to_samples (tempo.superclocks_per_note_type_at (timepos_t (transport_position)), _session.nominal_sample_rate());
return samples_per_quarter_note / 24.0;
}

Expand Down

0 comments on commit 52336eb

Please sign in to comment.