use centralized SMF tempo method in both places where we show it

This commit is contained in:
Paul Davis 2017-02-08 19:07:28 +01:00
parent 994f5cec0e
commit f4cb567fdb
2 changed files with 2 additions and 2 deletions

View File

@ -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 (60 * (1000000 / (double) t->microseconds_per_quarter_note), 4.0);
Tempo tempo (t->tempo(), 4.0);
Meter meter (t->numerator, t->denominator);
Timecode::BBT_Time bbt; /* 1|1|0 which is correct for the no-meter case */

View File

@ -344,7 +344,7 @@ SoundFileBox::setup_labels (const string& filename)
tempomap_value.set_text (string_compose (_("%1/%2 \u2669 = %3"),
t->numerator,
t->denominator,
(1000000 / t->microseconds_per_quarter_note) * 60));
t->tempo ()));
break;
}
default: