projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77a2632
)
Support note name editing in midi list editor
author
Nil Geisweiller
<ngeiswei@gmail.com>
Sat, 21 Jan 2017 22:38:54 +0000
(
00:38
+0200)
committer
Robin Gareus
<robin@gareus.org>
Sun, 14 May 2017 16:16:24 +0000
(18:16 +0200)
gtk2_ardour/midi_list_editor.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/midi_list_editor.cc
b/gtk2_ardour/midi_list_editor.cc
index dc9cc4a7d5fb108bbb4eaedb0781ae51e2ff4a62..b6100aa552c936af0e4b00bd4c4a3dde4121e90e 100644
(file)
--- 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()) {