#include "ardour/vca.h"
#include "canvas/debug.h"
+#include "canvas/note.h"
#include "canvas/text.h"
#include "widgets/ardour_spacer.h"
if (_verbose_cursor) {
playhead_cursor->set_sensitive (UIConfiguration::instance().get_draggable_playhead());
}
+ } else if (parameter == "use-note-bars-for-velocity") {
+ ArdourCanvas::Note::set_show_velocity_bars (UIConfiguration::instance().get_use_note_bars_for_velocity());
+ _track_canvas->request_redraw (_track_canvas->visible_area());
}
}
tact->set_active (s);
}
}
- } else if (p == "velocity-display") {
- _track_canvas->request_redraw (_track_canvas->visible_area());
}
}
add_option (_("Editor"), rsas);
add_option (_("Editor/Snap"), new OptionEditorHeading (_("General Snap options:")));
-
+
add_option (_("Editor/Snap"),
new SpinOption<uint32_t> (
"snap-threshold",
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_show_snapped_cursor),
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_show_snapped_cursor)
));
-
+
add_option (_("Editor/Snap"),
new BoolOption (
"rubberbanding-snaps-to-grid",
add_option (_("MIDI"), audition_synth);
+ add_option (_("MIDI"), new OptionEditorHeading (_("Velocity Display")));
+
+ add_option (_("MIDI"),
+ new BoolOption (
+ "use-note-bars-for-velocity",
+ _("Show velocity horizontally inside notes"),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_use_note_bars_for_velocity),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_use_note_bars_for_velocity)
+ ));
+
+ add_option (_("MIDI"),
+ new BoolOption (
+ "use-note-color-for-velocity",
+ _("Use colors to show note velocity"),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_use_note_color_for_velocity),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_use_note_color_for_velocity)
+ ));
+
/* Click */
add_option (_("Metronome"), new OptionEditorHeading (_("Metronome")));
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, use_note_bars_for_velocity, "use-note-bars-for-velocity", true)
+UI_CONFIG_VARIABLE (bool, use_note_color_for_velocity, "use-note-color-for-velocity", true)
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)