13
0

fix ramped BPM reporting to AU and VST plugins

This commit is contained in:
Robin Gareus 2016-08-17 17:17:00 +02:00
parent 90e2baf6a9
commit 613ff66042
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);
}