diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-06-16 07:17:22 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-06-16 07:17:22 +0000 |
commit | dcf303762ad6b1401d2dcfd763764b400dcee2f7 (patch) | |
tree | 27d6d4cb5aaeecf0dcc5841c4af83d88096c054a /LUFA/Drivers/USB/Class/Common/MIDI.h | |
parent | 39d07c3da045a3d739f9977101f8a81f0b8ff0e1 (diff) | |
download | lufa-dcf303762ad6b1401d2dcfd763764b400dcee2f7.tar.gz lufa-dcf303762ad6b1401d2dcfd763764b400dcee2f7.tar.bz2 lufa-dcf303762ad6b1401d2dcfd763764b400dcee2f7.zip |
Pipe_GetErrorFlags() now returns additional error flags for overflow and underflow errors.
Change MIDI demos to use real MIDI command values, and shift for the USB wrapper, rather than shift for the MIDI bytes. This is a little confusing for the MIDI USB wrapper, but allows for the use of real standardized MIDI command values.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Common/MIDI.h')
-rw-r--r-- | LUFA/Drivers/USB/Class/Common/MIDI.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/Class/Common/MIDI.h b/LUFA/Drivers/USB/Class/Common/MIDI.h index 05bd84630..f768ba238 100644 --- a/LUFA/Drivers/USB/Class/Common/MIDI.h +++ b/LUFA/Drivers/USB/Class/Common/MIDI.h @@ -60,10 +60,10 @@ #define MIDI_JACKTYPE_EXTERNAL 0x02
/** MIDI command for a note on (activation) event */
- #define MIDI_COMMAND_NOTE_ON 0x09
+ #define MIDI_COMMAND_NOTE_ON 0x90
/** MIDI command for a note off (deactivation) event */
- #define MIDI_COMMAND_NOTE_OFF 0x08
+ #define MIDI_COMMAND_NOTE_OFF 0x80
/** Standard key press velocity value used for all note events */
#define MIDI_STANDARD_VELOCITY 64
|