Skip to content
Snippets Groups Projects
Commit 77ed9c1d authored by Albert Gräf's avatar Albert Gräf
Browse files

ALSA MIDI backend: Quick and dirty fix for bogus zero-velocity note-off...

ALSA MIDI backend: Quick and dirty fix for bogus zero-velocity note-off messages; output a note-on with zero velocity instead.
parent 22680d90
No related branches found
No related tags found
No related merge requests found
......@@ -157,10 +157,7 @@ void sys_alsa_putmidimess(int portno, int a, int b, int c)
else if (a >= 144) // note
{
channel = a-144;
if (c)
snd_seq_ev_set_noteon(&ev,channel,b,c);
else
snd_seq_ev_set_noteoff(&ev,channel,b,c);
snd_seq_ev_set_noteon(&ev,channel,b,c);
}
snd_seq_ev_set_direct(&ev);
snd_seq_ev_set_subs(&ev);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment