fix ramped BPM reporting to AU and VST plugins
This commit is contained in:
parent
90e2baf6a9
commit
613ff66042
@ -1825,7 +1825,7 @@ AUPlugin::get_beat_and_tempo_callback (Float64* outCurrentBeat,
|
||||
}
|
||||
|
||||
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;
|
||||
|
@ -209,7 +209,7 @@ intptr_t Session::vst_callback (
|
||||
const TempoMetric& tm (session->tempo_map().metric_at (now));
|
||||
|
||||
if (value & (kVstTempoValid)) {
|
||||
const Tempo& t (tm.tempo());
|
||||
const Tempo& t (session->tempo_map().tempo_at_frame (now));
|
||||
timeinfo->tempo = t.beats_per_minute ();
|
||||
newflags |= (kVstTempoValid);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user