From d5fad959e648860bf22a22c54328dce6dc338f85 Mon Sep 17 00:00:00 2001 From: nick_m Date: Tue, 28 Feb 2017 03:11:22 +1100 Subject: [PATCH] probable fix for importing tempo maps that use non-quarter note pulse. - actually i'm not certain that this is correct, but it works ok Beethoven's fifth. --- gtk2_ardour/editor_audio_import.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_audio_import.cc b/gtk2_ardour/editor_audio_import.cc index adbb113aac..b7dabed698 100644 --- a/gtk2_ardour/editor_audio_import.cc +++ b/gtk2_ardour/editor_audio_import.cc @@ -285,7 +285,7 @@ Editor::import_smf_tempo_map (Evoral::SMF const & smf, framepos_t pos) Evoral::SMF::Tempo* t = smf.nth_tempo (n); assert (t); - Tempo tempo (t->tempo(), 4.0); + Tempo tempo (t->tempo(), 32.0 / (double) t->notes_per_note); Meter meter (t->numerator, t->denominator); Timecode::BBT_Time bbt; /* 1|1|0 which is correct for the no-meter case */