mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
allow users to opt for "select only the last drawn note" when drawing notes
This commit is contained in:
parent
6b9544cc39
commit
edc0e636e2
4 changed files with 15 additions and 1 deletions
|
|
@ -6872,6 +6872,9 @@ NoteCreateDrag::finished (GdkEvent* ev, bool had_movement)
|
|||
Beats length = max (Beats (0, 1), (_note[0].distance (_note[1]).abs ().beats ()));
|
||||
|
||||
/* create_note_at() implements UNDO for us */
|
||||
if (UIConfiguration::instance().get_select_last_drawn_note_only()) {
|
||||
_region_view->clear_note_selection ();
|
||||
}
|
||||
_region_view->create_note_at (timepos_t (start), _drag_rect->y0 (), length, ev->button.state, false);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -332,6 +332,7 @@ public:
|
|||
ARDOUR::InstrumentInfo& instrument_info() const;
|
||||
|
||||
void note_deleted (NoteBase*);
|
||||
void clear_note_selection ();
|
||||
|
||||
void show_verbose_cursor_for_new_note_value(std::shared_ptr<NoteType> current_note, uint8_t new_note) const;
|
||||
|
||||
|
|
@ -349,7 +350,6 @@ public:
|
|||
protected:
|
||||
friend class Editor;
|
||||
|
||||
void clear_note_selection ();
|
||||
void invert_note_selection ();
|
||||
void extend_note_selection ();
|
||||
|
||||
|
|
|
|||
|
|
@ -3517,6 +3517,16 @@ These settings will only take effect after %1 is restarted.\n\
|
|||
-1, 65536, 1, 10
|
||||
));
|
||||
|
||||
add_option (_("MIDI"), new OptionEditorHeading (_("Selection")));
|
||||
|
||||
add_option (_("MIDI"),
|
||||
new BoolOption (
|
||||
"select-last-drawn-note-only",
|
||||
_("When drawing new notes, select only the last drawn note"),
|
||||
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_select_last_drawn_note_only),
|
||||
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_select_last_drawn_note_only)
|
||||
));
|
||||
|
||||
add_option (_("MIDI"), new OptionEditorHeading (_("Audition")));
|
||||
|
||||
add_option (_("MIDI"),
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ UI_CONFIG_VARIABLE (ARDOUR::WaveformShape, waveform_shape, "waveform-shape", Tra
|
|||
UI_CONFIG_VARIABLE (bool, update_editor_during_summary_drag, "update-editor-during-summary-drag", true)
|
||||
UI_CONFIG_VARIABLE (bool, never_display_periodic_midi, "never-display-periodic-midi", true)
|
||||
UI_CONFIG_VARIABLE (bool, sound_midi_notes, "sound-midi-notes", true)
|
||||
UI_CONFIG_VARIABLE (bool, select_last_drawn_note_only, "select-last-drawn-note-only", true)
|
||||
UI_CONFIG_VARIABLE (bool, show_plugin_scan_window, "show-plugin-scan-window", false)
|
||||
UI_CONFIG_VARIABLE (bool, show_manager_if_plugins_are_missing, "show-manager-if-plugins-are-missing", true)
|
||||
UI_CONFIG_VARIABLE (bool, show_zoom_tools, "show-zoom-tools", true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue