-
Notifications
You must be signed in to change notification settings - Fork 2
umpToBytestream
Andrew Mee edited this page Jun 17, 2024
·
1 revision
Class used for translating from UMP to a MIDI 1.0 Bytestream
Group is set to the current group of the translated UMP
Process incoming UMP's
Check if there are available Byte Stream bytes available.
Return the next byte.
umpToBytestream UMPConvertForDIN;
int main(){
...
while(1){
if (isUMPAvailable()) {
uint32_t ump = get_UMP();
UMPConvertForDIN.UMPStreamParse(ump);
while (UMPConvertForDIN.availableBS()) {
uint8_t byte = UMPConvertForDIN.readBS();
if (UMPConvertForDIN.group == 0) { //Check if data is on correct group
//Write byte to DIN Port
}
}
}
}
}