Bugfix: A key volume of zero means key off.

git-svn-id: svn://svn.code.sf.net/p/jack-keyboard/code/trunk@14 1fa2bf75-7d80-4145-9e94-f9b4e25a1cb2
This commit is contained in:
hselasky 2011-05-06 07:10:20 +00:00
parent da394afa28
commit 7ce94fc841
2 changed files with 8 additions and 1 deletions

4
NEWS
View File

@ -1,3 +1,7 @@
User-visible changes between 2.5 and 2.6 include:
- Bugfix: A key volume of zero means key off.
User-visible changes between 2.4 and 2.5 include: User-visible changes between 2.4 and 2.5 include:
- Autotools. This should make life easier for distributors. ;-) - Autotools. This should make life easier for distributors. ;-)

View File

@ -209,7 +209,10 @@ process_received_message_async(gpointer evp)
} }
if (ev->data[0] == MIDI_NOTE_ON) { if (ev->data[0] == MIDI_NOTE_ON) {
piano_keyboard_set_note_on(keyboard, ev->data[1]); if (ev->data[2] == 0)
piano_keyboard_set_note_off(keyboard, ev->data[1]);
else
piano_keyboard_set_note_on(keyboard, ev->data[1]);
} }
if (ev->data[0] == MIDI_NOTE_OFF) { if (ev->data[0] == MIDI_NOTE_OFF) {