13
0

add velocity item to MIDI track automation menu

This commit is contained in:
Paul Davis 2022-12-18 15:47:14 -07:00
parent 1d117aa372
commit 6cb4d01f1f

View File

@ -725,13 +725,16 @@ MidiTimeAxisView::build_automation_action_menu (bool for_selection)
automation_items.push_back (SeparatorElem()); automation_items.push_back (SeparatorElem());
/* these 2 MIDI "command" types are semantically more like automation /* these 3 MIDI "command" types are semantically more like automation
* than note data, but they are not MIDI controllers. We give them * than note data, but they are not MIDI controllers. We give them
* special status in this menu, since they will not show up in the * special status in this menu, since they will not show up in the
* controller list and anyone who actually knows something about MIDI * controller list and anyone who actually knows something about MIDI
* (!) would not expect to find them there. * (!) would not expect to find them there.
*/ */
add_channel_command_menu_item (automation_items, _("Velocity"), MidiVelocityAutomation, 0);
automation_items.back().set_sensitive (!for_selection || _editor.get_selection().tracks.size() == 1);
add_channel_command_menu_item (automation_items, _("Bender"), MidiPitchBenderAutomation, 0); add_channel_command_menu_item (automation_items, _("Bender"), MidiPitchBenderAutomation, 0);
automation_items.back().set_sensitive (!for_selection || _editor.get_selection().tracks.size() == 1); automation_items.back().set_sensitive (!for_selection || _editor.get_selection().tracks.size() == 1);