diff options
Diffstat (limited to 'backends')
| -rw-r--r-- | backends/midi.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/midi.c b/backends/midi.c index 536457d..cde278b 100644 --- a/backends/midi.c +++ b/backends/midi.c @@ -265,6 +265,9 @@ static int midi_handle(size_t num, managed_fd* fds){  				ident.fields.channel = ev->data.note.channel;  				ident.fields.control = ev->data.note.note;  				val.normalised = (double)ev->data.note.velocity / 127.0; +				if(ev->type == SND_SEQ_EVENT_NOTEOFF){ +   					val.normalised = 0; +				}  				event_type = "note";  				break;  			case SND_SEQ_EVENT_KEYPRESS:  | 
