Skip to content

Commit

Permalink
Merge pull request #263 from neroroxxx/master
Browse files Browse the repository at this point in the history
Added getSysExArrayLength()
  • Loading branch information
PaulStoffregen authored Jan 15, 2018
2 parents afe894a + e2d51aa commit 3ad6599
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions teensy3/usb_midi.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ class usb_midi_class
uint8_t * getSysExArray(void) __attribute__((always_inline)) {
return usb_midi_msg_sysex;
}
uint16_t getSysExArrayLength(void) __attribute__((always_inline)) {
return usb_midi_msg_data2 << 8 | usb_midi_msg_data1;
}

void setHandleNoteOff(void (*fptr)(uint8_t channel, uint8_t note, uint8_t velocity)) {
// type: 0x80 NoteOff
usb_midi_handleNoteOff = fptr;
Expand Down

0 comments on commit 3ad6599

Please sign in to comment.