This class will iterate over incoming MIDI messages, and transform them into HiseEvents with a succesive index for note-on / note-off messages. More...
Public Member Functions | |
void | addCCRemap (int firstCC_, int secondCC_) |
Adds a CC remapping configuration. More... | |
uint16 | getEventIdForNoteOff (const HiseEvent ¬eOffEvent) |
Removes the matching noteOn event for the given noteOff event. More... | |
void | handleEventIds () |
Fills note on / note off messages with the event id and returns the current value for external storage. More... | |
HiseEvent | peekNoteOn (const HiseEvent ¬eOffEvent) |
Returns the matching note on event for the given note off event (but doesn't remove it). More... | |
HiseEvent | popNoteOnFromEventId (uint16 eventId) |
Searches all active note on events and returns the one with the given event id. More... | |
void | pushArtificialNoteOn (HiseEvent ¬eOnEvent) noexcept |
Adds the artificial event to the internal stack array. More... | |
void | setGlobalTransposeValue (int transposeValue) |
You can specify a global transpose value here that will be added to all note on / note off messages. More... | |
This class will iterate over incoming MIDI messages, and transform them into HiseEvents with a succesive index for note-on / note-off messages.
Normally, you won't use this class, but rather benefit from it in the MIDI processing world using Message.getEventId(), but there are a few methods that can access these things directly.
void addCCRemap | ( | int | firstCC_, |
int | secondCC_ | ||
) |
Adds a CC remapping configuration.
If this is enabled, the CC numbers will be swapped. If you pass in the same numbers, it will be deactivated.
uint16 getEventIdForNoteOff | ( | const HiseEvent & | noteOffEvent | ) |
Removes the matching noteOn event for the given noteOff event.
void handleEventIds | ( | ) |
Fills note on / note off messages with the event id and returns the current value for external storage.
Returns the matching note on event for the given note off event (but doesn't remove it).
HiseEvent popNoteOnFromEventId | ( | uint16 | eventId | ) |
Searches all active note on events and returns the one with the given event id.
|
noexcept |
Adds the artificial event to the internal stack array.
void setGlobalTransposeValue | ( | int | transposeValue | ) |
You can specify a global transpose value here that will be added to all note on / note off messages.