use centralized SMF tempo method in both places where we show it
This commit is contained in:
parent
994f5cec0e
commit
f4cb567fdb
@ -285,7 +285,7 @@ Editor::import_smf_tempo_map (Evoral::SMF const & smf, framepos_t pos)
|
|||||||
Evoral::SMF::Tempo* t = smf.nth_tempo (n);
|
Evoral::SMF::Tempo* t = smf.nth_tempo (n);
|
||||||
assert (t);
|
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);
|
Meter meter (t->numerator, t->denominator);
|
||||||
Timecode::BBT_Time bbt; /* 1|1|0 which is correct for the no-meter case */
|
Timecode::BBT_Time bbt; /* 1|1|0 which is correct for the no-meter case */
|
||||||
|
|
||||||
|
@ -344,7 +344,7 @@ SoundFileBox::setup_labels (const string& filename)
|
|||||||
tempomap_value.set_text (string_compose (_("%1/%2 \u2669 = %3"),
|
tempomap_value.set_text (string_compose (_("%1/%2 \u2669 = %3"),
|
||||||
t->numerator,
|
t->numerator,
|
||||||
t->denominator,
|
t->denominator,
|
||||||
(1000000 / t->microseconds_per_quarter_note) * 60));
|
t->tempo ()));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user