13
0

parametize default MIDI scroomer (and thus MIDI track) note range

This commit is contained in:
Paul Davis 2022-04-16 11:10:43 -06:00
parent 1237a4f3bb
commit a4f26f91c8
2 changed files with 4 additions and 2 deletions

View File

@ -67,8 +67,8 @@ MidiStreamView::MidiStreamView (MidiTimeAxisView& tv)
, note_range_adjustment(0.0f, 0.0f, 0.0f) , note_range_adjustment(0.0f, 0.0f, 0.0f)
, _range_dirty(false) , _range_dirty(false)
, _range_sum_cache(-1.0) , _range_sum_cache(-1.0)
, _lowest_note(60) , _lowest_note(UIConfiguration::instance().get_default_lower_midi_note())
, _highest_note(71) , _highest_note(UIConfiguration::instance().get_default_upper_midi_note())
, _data_note_min(60) , _data_note_min(60)
, _data_note_max(71) , _data_note_max(71)
, _note_lines (0) , _note_lines (0)

View File

@ -136,6 +136,8 @@ UI_CONFIG_VARIABLE (bool, show_region_name, "show-region-name", true)
UI_CONFIG_VARIABLE (int, time_axis_name_ellipsize_mode, "time-axis-name-ellipsize-mode", 0) UI_CONFIG_VARIABLE (int, time_axis_name_ellipsize_mode, "time-axis-name-ellipsize-mode", 0)
UI_CONFIG_VARIABLE (bool, show_triggers_inline, "show-triggers-inline", false) UI_CONFIG_VARIABLE (bool, show_triggers_inline, "show-triggers-inline", false)
UI_CONFIG_VARIABLE (bool, one_plugin_window_only, "one-plugin-window-only", false) UI_CONFIG_VARIABLE (bool, one_plugin_window_only, "one-plugin-window-only", false)
UI_CONFIG_VARIABLE (int, default_lower_midi_note, "default-lower-midi-note", 60)
UI_CONFIG_VARIABLE (int, default_upper_midi_note, "default-upper-midi-note", 71)
/* these are visibility-type selections in the New Track dialog that we should make persistent for the user's choices */ /* these are visibility-type selections in the New Track dialog that we should make persistent for the user's choices */
UI_CONFIG_VARIABLE (bool, show_on_cue_page, "show-on-cue-page", true) UI_CONFIG_VARIABLE (bool, show_on_cue_page, "show-on-cue-page", true)