MIDI list editor: fix note-length dropdown (#9457)

This commit is contained in:
Robin Gareus 2023-09-24 12:55:10 +02:00
parent 6e24a409f4
commit 2d24a5fe88
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -659,7 +659,7 @@ MidiListEditor::edited (const std::string& path, const std::string& text)
} }
if (x != note_length_map.end()) { if (x != note_length_map.end()) {
bval = x->first / Temporal::ticks_per_beat; bval = Temporal::Beats::ticks (x->first);
} }
} else { } else {
@ -680,7 +680,7 @@ MidiListEditor::edited (const std::string& path, const std::string& text)
if (x != note_length_map.end()) { if (x != note_length_map.end()) {
/* convert to beats */ /* convert to beats */
bval = x->first / Temporal::ticks_per_beat; bval = Temporal::Beats::ticks (x->first);
} }
} }
} }