MIDI list editor: fix note-length dropdown (#9457)
This commit is contained in:
parent
6e24a409f4
commit
2d24a5fe88
|
@ -659,7 +659,7 @@ MidiListEditor::edited (const std::string& path, const std::string& text)
|
|||
}
|
||||
|
||||
if (x != note_length_map.end()) {
|
||||
bval = x->first / Temporal::ticks_per_beat;
|
||||
bval = Temporal::Beats::ticks (x->first);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
@ -680,7 +680,7 @@ MidiListEditor::edited (const std::string& path, const std::string& text)
|
|||
|
||||
if (x != note_length_map.end()) {
|
||||
/* convert to beats */
|
||||
bval = x->first / Temporal::ticks_per_beat;
|
||||
bval = Temporal::Beats::ticks (x->first);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user