From: Paul Davis Date: Tue, 3 Jul 2018 18:06:25 +0000 (-0400) Subject: set up core stuff for velocity display option X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=20328f2929a47b19f5ee84cf9c764a1f98039475;hp=b6711383f3a68f95fcb5719d153e382e2f8623f9;p=ardour.git set up core stuff for velocity display option --- diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc index a225a2978a..b1ed4365b1 100644 --- a/gtk2_ardour/editor_actions.cc +++ b/gtk2_ardour/editor_actions.cc @@ -1489,6 +1489,8 @@ Editor::parameter_changed (std::string p) tact->set_active (s); } } + } else if (p == "velocity-display") { + _track_canvas->request_redraw (_track_canvas->visible_area()); } } diff --git a/gtk2_ardour/ui_config_vars.h b/gtk2_ardour/ui_config_vars.h index 7a42234966..da568e38c8 100644 --- a/gtk2_ardour/ui_config_vars.h +++ b/gtk2_ardour/ui_config_vars.h @@ -98,7 +98,7 @@ UI_CONFIG_VARIABLE (bool, prefer_inline_over_gui, "prefer-inline-over-gui", true UI_CONFIG_VARIABLE (uint32_t, action_table_columns, "action-table-columns", 0) UI_CONFIG_VARIABLE (bool, use_wm_visibility, "use-wm-visibility", true) UI_CONFIG_VARIABLE (std::string, stripable_color_palette, "stripable-color-palette", "#AA3939:#FFAAAA:#D46A6A:#801515:#550000:#AA8E39:#FFEAAA:#D4BA6A:#806515:#554000:#343477:#8080B3:#565695:#1A1A59:#09093B:#2D882D:#88CC88:#55AA55:#116611:#004400") /* Gtk::ColorSelection::palette_to_string */ - +UI_CONFIG_VARIABLE (ARDOUR::VelocityDisplayOption, velocity_display, "velocity-display", ARDOUR::NoteBars) UI_CONFIG_VARIABLE (bool, show_snapped_cursor, "show-snapped-cursor", true) UI_CONFIG_VARIABLE (uint32_t, snap_threshold, "snap-threshold", 25) UI_CONFIG_VARIABLE (bool, snap_to_marks, "snap-to-marks", true)