summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_audio_import.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2017-02-28 03:11:22 +1100
committerRobin Gareus <robin@gareus.org>2017-02-27 20:16:10 +0100
commitd5fad959e648860bf22a22c54328dce6dc338f85 (patch)
treea658d8bcae23b63ca57d618c25cb5bc9f540908b /gtk2_ardour/editor_audio_import.cc
parente55b882a0996d7f3ec82bd2fb38b351719a7081a (diff)
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.
Diffstat (limited to 'gtk2_ardour/editor_audio_import.cc')
-rw-r--r--gtk2_ardour/editor_audio_import.cc2
1 files changed, 1 insertions, 1 deletions
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 */