diff options
author | Nil Geisweiller <ngeiswei@gmail.com> | 2017-01-22 00:38:54 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-05-14 18:16:24 +0200 |
commit | 8242f4f636649bb8e6754a8871e7c111ebfa6dd3 (patch) | |
tree | 349c09d4ffe9e7d2ede74f0fe306843a5b848cf1 | |
parent | 77a2632e342801aee3836ce0bf59f7e639fd42e5 (diff) |
Support note name editing in midi list editor
-rw-r--r-- | gtk2_ardour/midi_list_editor.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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()) { |