mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
Add automation lane for poly-key-pressure
This commit is contained in:
parent
b955bb04ec
commit
4e43aaef64
2 changed files with 2 additions and 9 deletions
|
|
@ -131,7 +131,6 @@ MidiTimeAxisView::MidiTimeAxisView (PublicEditor& ed, Session* sess, ArdourCanva
|
||||||
, _channel_selector (0)
|
, _channel_selector (0)
|
||||||
, _step_edit_item (0)
|
, _step_edit_item (0)
|
||||||
, controller_menu (0)
|
, controller_menu (0)
|
||||||
, poly_pressure_menu (0)
|
|
||||||
, _step_editor (0)
|
, _step_editor (0)
|
||||||
{
|
{
|
||||||
_midnam_model_selector.disable_scrolling();
|
_midnam_model_selector.disable_scrolling();
|
||||||
|
|
@ -687,14 +686,9 @@ MidiTimeAxisView::build_automation_action_menu (bool for_selection)
|
||||||
build_controller_menu ();
|
build_controller_menu ();
|
||||||
automation_items.push_back (MenuElem (_("Controllers"), *controller_menu));
|
automation_items.push_back (MenuElem (_("Controllers"), *controller_menu));
|
||||||
|
|
||||||
if (!poly_pressure_menu) {
|
add_channel_command_menu_item (automation_items, _("Polyphonic Pressure"), MidiNotePressureAutomation, 0);
|
||||||
poly_pressure_menu = new Gtk::Menu;
|
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 {
|
} else {
|
||||||
automation_items.push_back (
|
automation_items.push_back (
|
||||||
MenuElem (string_compose ("<i>%1</i>", _("No MIDI Channels selected"))));
|
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);
|
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* 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_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);
|
void add_multi_channel_controller_item (Gtk::Menu_Helpers::MenuList& ctl_items, uint16_t chanels, int ctl, const std::string& name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue