Add automation lane for poly-key-pressure
This commit is contained in:
parent
b955bb04ec
commit
4e43aaef64
|
@ -131,7 +131,6 @@ MidiTimeAxisView::MidiTimeAxisView (PublicEditor& ed, Session* sess, ArdourCanva
|
|||
, _channel_selector (0)
|
||||
, _step_edit_item (0)
|
||||
, controller_menu (0)
|
||||
, poly_pressure_menu (0)
|
||||
, _step_editor (0)
|
||||
{
|
||||
_midnam_model_selector.disable_scrolling();
|
||||
|
@ -687,14 +686,9 @@ MidiTimeAxisView::build_automation_action_menu (bool for_selection)
|
|||
build_controller_menu ();
|
||||
automation_items.push_back (MenuElem (_("Controllers"), *controller_menu));
|
||||
|
||||
if (!poly_pressure_menu) {
|
||||
poly_pressure_menu = new Gtk::Menu;
|
||||
}
|
||||
add_channel_command_menu_item (automation_items, _("Polyphonic Pressure"), MidiNotePressureAutomation, 0);
|
||||
automation_items.back().set_sensitive (!for_selection || _editor.get_selection().tracks.size() == 1);
|
||||
|
||||
automation_items.push_back (MenuElem (_("Polyphonic Pressure"), *poly_pressure_menu));
|
||||
|
||||
automation_items.back().set_sensitive (
|
||||
!for_selection || _editor.get_selection().tracks.size() == 1);
|
||||
} else {
|
||||
automation_items.push_back (
|
||||
MenuElem (string_compose ("<i>%1</i>", _("No MIDI Channels selected"))));
|
||||
|
|
|
@ -166,7 +166,6 @@ private:
|
|||
void add_channel_command_menu_item (Gtk::Menu_Helpers::MenuList& items, const std::string& label, ARDOUR::AutomationType auto_type, uint8_t cmd);
|
||||
|
||||
Gtk::Menu* controller_menu;
|
||||
Gtk::Menu* poly_pressure_menu;
|
||||
|
||||
void add_single_channel_controller_item (Gtk::Menu_Helpers::MenuList& ctl_items, int ctl, const std::string& name);
|
||||
void add_multi_channel_controller_item (Gtk::Menu_Helpers::MenuList& ctl_items, uint16_t chanels, int ctl, const std::string& name);
|
||||
|
|
Loading…
Reference in New Issue
Block a user