Hi all,
My current project is building a controller surface for my recording software that's based on a protocol called "HUI" by a company called mackie. I'm having a lot of success by referencing this:
and by using a midi monitor to watch how messages behave... but this isn't really related to my question.
The problem at hand is that I'm reading in some Hex bytes from software (that thinks it's talking to a HUI device) and I want to print them using a standard library (or through serial monitor), but the device the computer thinks it's talking to had it's own idea of what each byte means. For example, digits 0 though 9 are 0x30 to 0x39; capital A is 0x41 and counts up for a bit, then picks at capital P with 0x50. There's special characters as well. The table of values is on page 13 in the link above.
So I guess my question to more experienced programmers what would be the easiest way to "translate" the incoming hex bytes into the expected characters? Is it a big array or characters indexed by the hex values? Can I define a character set? There are 127 values to deal with.
Thanks for entertaining such a weird question,
Brian