---
** [patches:#576] ALSA_MIDI_NOTE_ON_FIX**
**Status:** open
**Group:** bugfix
**Created:** Sun Apr 24, 2016 07:28 PM UTC by Philip Stolz
**Last Updated:** Sun Apr 24, 2016 07:28 PM UTC
**Owner:** nobody
**Attachments:**
-
[0001-FIXED-Behavior-for-note_on-velocity-0-note_off-in-al.patch](https://sourceforge.net/p/pure-data/patches/576/attachment/0001-FIXED-Behavior-for-note_on-velocity-0-note_off-in-al.patch)
(1.5 kB; text/x-patch)
The ALSA implementation of putmidimess replaced "note on" messages with "note
off" messages if their velocity=0.
This behavior isn't consistent with the OSS implementation.
This patch has removed the special treatment of "note_on",vel=0 messages from
the ALSA implementation in s_midi_alsa.c. The patch also generates "note off"
messages if they were in the output queue.
REMARK: Currently there is no way to put "note off" messages to the output
queue from a pd-patch. I would sugest to implement the special treatment of
"note on" messages with vel=0 as an optional behavior of [noteout]. I could
imagine two different modes of noteout: mode 1: vel=0 => "note on", vel=0; mode
2: vel=0 => "note off".
---
Sent from sourceforge.net because [email protected] is subscribed to
https://sourceforge.net/p/pure-data/patches/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/pure-data/admin/patches/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Pd-dev mailing list
[email protected]
https://lists.puredata.info/listinfo/pd-dev