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); } } }