set up core stuff for velocity display option
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 3 Jul 2018 18:06:25 +0000 (14:06 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 3 Jul 2018 18:06:25 +0000 (14:06 -0400)
gtk2_ardour/editor_actions.cc
gtk2_ardour/ui_config_vars.h

index a225a2978a6f005971a4d00347c29d7376ccd1dc..b1ed4365b1e67315027e72408744008ad3fbaec1 100644 (file)
@@ -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());
        }
 }
 
index 7a42234966d71cff1e3a63f499ea51557b9a095d..da568e38c836a7442eec67943bcb6875853f82d6 100644 (file)
@@ -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)