mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-20 18:40:57 +00:00
properly handle Program Change and Channel Aftertouch messages
This commit is contained in:
parent
55e0b5882a
commit
9f014b059a
@ -279,6 +279,12 @@ uint32_t tud_midi_n_stream_write(uint8_t itf, uint8_t cable_num, uint8_t const*
|
||||
stream->buffer[0] = (cable_num << 4) | msg;
|
||||
stream->total = 4;
|
||||
}
|
||||
else if ( msg == 0xC || msg == 0xD)
|
||||
{
|
||||
// Channel Voice Messages, two-byte variants (Program Change and Channel Pressure)
|
||||
stream->buffer[0] = (cable_num << 4) | msg;
|
||||
stream->total = 3;
|
||||
}
|
||||
else if ( msg == 0xf )
|
||||
{
|
||||
// System message
|
||||
|
Loading…
x
Reference in New Issue
Block a user