From 8242f4f636649bb8e6754a8871e7c111ebfa6dd3 Mon Sep 17 00:00:00 2001 From: Nil Geisweiller Date: Sun, 22 Jan 2017 00:38:54 +0200 Subject: Support note name editing in midi list editor --- gtk2_ardour/midi_list_editor.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gtk2_ardour/midi_list_editor.cc b/gtk2_ardour/midi_list_editor.cc index dc9cc4a7d5..b6100aa552 100644 --- a/gtk2_ardour/midi_list_editor.cc +++ b/gtk2_ardour/midi_list_editor.cc @@ -612,6 +612,13 @@ MidiListEditor::edited (const std::string& path, const std::string& text) } break; case 3: // name + ival = ParameterDescriptor::midi_note_num (text); + if (ival < 128) { + idelta = ival - note->note(); + prop = MidiModel::NoteDiffCommand::NoteNumber; + opname = _("change note number"); + apply = true; + } break; case 4: // velocity if (sscanf (text.c_str(), "%d", &ival) == 1 && ival != note->velocity()) { -- cgit v1.2.3