From 2d24a5fe881c94ae884ee9fbd62237fbb07a536b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 24 Sep 2023 12:55:10 +0200 Subject: [PATCH] MIDI list editor: fix note-length dropdown (#9457) --- gtk2_ardour/midi_list_editor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/midi_list_editor.cc b/gtk2_ardour/midi_list_editor.cc index 5e28c52f09..fcc402ad1e 100644 --- a/gtk2_ardour/midi_list_editor.cc +++ b/gtk2_ardour/midi_list_editor.cc @@ -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); } } }