mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
fix MIDI Clock output times by using the correct call to get tempo at a position
Could be worth a double check of the codebase/hiding the API that ignores ramping
This commit is contained in:
parent
adc9d9e0af
commit
52336eb2f0
1 changed files with 2 additions and 2 deletions
|
|
@ -218,8 +218,8 @@ out:
|
||||||
double
|
double
|
||||||
MidiClockTicker::one_ppqn_in_samples (samplepos_t transport_position) const
|
MidiClockTicker::one_ppqn_in_samples (samplepos_t transport_position) const
|
||||||
{
|
{
|
||||||
Tempo const & tempo (TempoMap::use()->metric_at (timepos_t (transport_position)).tempo());
|
TempoPoint 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());
|
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;
|
return samples_per_quarter_note / 24.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue