diff options
author | nick_m <mainsbridge@gmail.com> | 2017-02-28 03:11:22 +1100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-02-27 20:16:10 +0100 |
commit | d5fad959e648860bf22a22c54328dce6dc338f85 (patch) | |
tree | a658d8bcae23b63ca57d618c25cb5bc9f540908b /gtk2_ardour/editor_audio_import.cc | |
parent | e55b882a0996d7f3ec82bd2fb38b351719a7081a (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.cc | 2 |
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 */ |