Skip to content

Commit

Permalink
Update midi_input_usb.h
Browse files Browse the repository at this point in the history
  • Loading branch information
DatanoiseTV authored Oct 13, 2024
1 parent 327df27 commit 6b029ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/midi_input_usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class MIDIInputUSB {
void setPitchBendCallback(void (*callback)(uint16_t, uint8_t));
void setAftertouchCallback(void (*callback)(uint8_t, uint8_t));
void setChannelPressureCallback(void (*callback)(uint8_t, uint8_t));
void setClockCallback(void (*callback)());

// MIDI processing function
void process();
Expand All @@ -25,6 +26,7 @@ class MIDIInputUSB {
std::function<void(uint16_t, uint8_t)> MIDIPitchBendCallback = nullptr;
std::function<void(uint8_t, uint8_t)> MIDIAftertouchCallback = nullptr;
std::function<void(uint8_t, uint8_t)> MIDIChannelPressureCallback = nullptr;
std::function<void(uint8_t, uint8_t)> MIDIClockCallback = nullptr;

// Helper function for parsing pitch bend data
uint16_t parsePitchBend(const uint8_t* packet);
Expand Down

0 comments on commit 6b029ba

Please sign in to comment.