mirror of
https://github.com/gdsports/USBHost_t36
synced 2024-11-21 16:45:04 -05:00
Merge pull request #15 from neroroxxx/master
Added getSysExArrayLength(), changed msg_sysex_len to uint16_t
This commit is contained in:
commit
e968a0f49a
@ -1042,6 +1042,9 @@ public:
|
|||||||
uint8_t * getSysExArray(void) {
|
uint8_t * getSysExArray(void) {
|
||||||
return msg_sysex;
|
return msg_sysex;
|
||||||
}
|
}
|
||||||
|
uint16_t getSysExArrayLength(void) {
|
||||||
|
return msg_data2 << 8 | msg_data1;
|
||||||
|
}
|
||||||
void setHandleNoteOff(void (*fptr)(uint8_t channel, uint8_t note, uint8_t velocity)) {
|
void setHandleNoteOff(void (*fptr)(uint8_t channel, uint8_t note, uint8_t velocity)) {
|
||||||
// type: 0x80 NoteOff
|
// type: 0x80 NoteOff
|
||||||
handleNoteOff = fptr;
|
handleNoteOff = fptr;
|
||||||
@ -1172,7 +1175,7 @@ private:
|
|||||||
uint8_t msg_data1;
|
uint8_t msg_data1;
|
||||||
uint8_t msg_data2;
|
uint8_t msg_data2;
|
||||||
uint8_t msg_sysex[SYSEX_MAX_LEN];
|
uint8_t msg_sysex[SYSEX_MAX_LEN];
|
||||||
uint8_t msg_sysex_len;
|
uint16_t msg_sysex_len;
|
||||||
void (*handleNoteOff)(uint8_t ch, uint8_t note, uint8_t vel);
|
void (*handleNoteOff)(uint8_t ch, uint8_t note, uint8_t vel);
|
||||||
void (*handleNoteOn)(uint8_t ch, uint8_t note, uint8_t vel);
|
void (*handleNoteOn)(uint8_t ch, uint8_t note, uint8_t vel);
|
||||||
void (*handleVelocityChange)(uint8_t ch, uint8_t note, uint8_t vel);
|
void (*handleVelocityChange)(uint8_t ch, uint8_t note, uint8_t vel);
|
||||||
|
Loading…
Reference in New Issue
Block a user