| inline void setHandleAfterTouch(void (*fptr)(uint8_t channel, uint8_t pressure)) { | inline void setHandleAfterTouch(void (*fptr)(uint8_t channel, uint8_t pressure)) { | ||||
| handleAfterTouch = fptr; | handleAfterTouch = fptr; | ||||
| }; | }; | ||||
| inline void setHandlePitchChange(void (*fptr)(uint8_t channel, uint16_t pitch)) { | |||||
| inline void setHandlePitchChange(void (*fptr)(uint8_t channel, int pitch)) { | |||||
| handlePitchChange = fptr; | handlePitchChange = fptr; | ||||
| }; | }; | ||||
| inline void setHandleRealTimeSystem(void (*fptr)(uint8_t realtimebyte)) { | inline void setHandleRealTimeSystem(void (*fptr)(uint8_t realtimebyte)) { | ||||
| void (*handleControlChange)(uint8_t ch, uint8_t, uint8_t); | void (*handleControlChange)(uint8_t ch, uint8_t, uint8_t); | ||||
| void (*handleProgramChange)(uint8_t ch, uint8_t); | void (*handleProgramChange)(uint8_t ch, uint8_t); | ||||
| void (*handleAfterTouch)(uint8_t ch, uint8_t); | void (*handleAfterTouch)(uint8_t ch, uint8_t); | ||||
| void (*handlePitchChange)(uint8_t ch, uint16_t); | |||||
| void (*handlePitchChange)(uint8_t ch, int pitch); | |||||
| void (*handleRealTimeSystem)(uint8_t rtb); | void (*handleRealTimeSystem)(uint8_t rtb); | ||||
| }; | }; | ||||