From b942eecc9c84f5d27e1e478c2c4ca69ab1fb8c0c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 26 Dec 2019 12:17:20 +0100 Subject: Vkeybd: force release notes on panic If key(s) are still being pressed, a key-repeat will re-trigger the most recently pressed note (depending on keyboard settings). --- gtk2_ardour/pianokeyboard.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gtk2_ardour/pianokeyboard.cc') diff --git a/gtk2_ardour/pianokeyboard.cc b/gtk2_ardour/pianokeyboard.cc index d317a33bed..c4e0df0ebc 100644 --- a/gtk2_ardour/pianokeyboard.cc +++ b/gtk2_ardour/pianokeyboard.cc @@ -1044,6 +1044,13 @@ APianoKeyboard::sustain_release () } } +void +APianoKeyboard::reset () +{ + sustain_release (); + stop_unsustained_notes (); +} + void APianoKeyboard::set_note_on (int note) { -- cgit v1.2.3