projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e55b882
)
probable fix for importing tempo maps that use non-quarter note pulse.
author
nick_m
<mainsbridge@gmail.com>
Mon, 27 Feb 2017 16:11:22 +0000
(
03:11
+1100)
committer
Robin Gareus
<robin@gareus.org>
Mon, 27 Feb 2017 19:16:10 +0000
(20:16 +0100)
- actually i'm not certain that this is correct,
but it works ok Beethoven's fifth.
gtk2_ardour/editor_audio_import.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/editor_audio_import.cc
b/gtk2_ardour/editor_audio_import.cc
index adbb113aaccb422d958b2668244a18d18d3661aa..b7dabed6986844007a451539306eca7cc5744bdd 100644
(file)
--- 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 */