When drawing a note, only play it once

Previously two identical Note on events were sent:
 * Select newly created note -> note-on event
 * Play newly created note -> note-on event
This commit is contained in:
Robin Gareus 2024-05-20 18:49:59 +02:00
parent 9de2b3435d
commit f693c0406a
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -910,11 +910,8 @@ MidiRegionView::create_note_at (timepos_t const & t, double y, Temporal::Beats l
apply_note_diff();
trackview.editor().set_selected_midi_region_view (*this);
list<Evoral::event_id_t> to_be_selected;
to_be_selected.push_back (new_note->id());
select_notes (to_be_selected, true);
play_midi_note (new_note);
/* apply_note_diff above selects and plays the newly created note */
}
void