mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
fix ramped BPM reporting to AU and VST plugins
This commit is contained in:
parent
90e2baf6a9
commit
613ff66042
2 changed files with 2 additions and 2 deletions
|
|
@ -1825,7 +1825,7 @@ AUPlugin::get_beat_and_tempo_callback (Float64* outCurrentBeat,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (outCurrentTempo) {
|
if (outCurrentTempo) {
|
||||||
*outCurrentTempo = floor (metric.tempo().beats_per_minute());
|
*outCurrentTempo = floor (session->tempo_map().tempo_at_frame (transport_frame + input_offset).beats_per_minute());
|
||||||
}
|
}
|
||||||
|
|
||||||
return noErr;
|
return noErr;
|
||||||
|
|
|
||||||
|
|
@ -209,7 +209,7 @@ intptr_t Session::vst_callback (
|
||||||
const TempoMetric& tm (session->tempo_map().metric_at (now));
|
const TempoMetric& tm (session->tempo_map().metric_at (now));
|
||||||
|
|
||||||
if (value & (kVstTempoValid)) {
|
if (value & (kVstTempoValid)) {
|
||||||
const Tempo& t (tm.tempo());
|
const Tempo& t (session->tempo_map().tempo_at_frame (now));
|
||||||
timeinfo->tempo = t.beats_per_minute ();
|
timeinfo->tempo = t.beats_per_minute ();
|
||||||
newflags |= (kVstTempoValid);
|
newflags |= (kVstTempoValid);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue