Thanks again Steve.
I’m trying to convert a variable obtained from a hex input string to a decimal value that is output as 2 hex digits.
Input MIDI is BF 0A xx
The third byte ranges from 00 to 7F. I capture it to the variable pp.
I need to output the decimal value of pp to my serial port as 2 hex digits - from 00 00 to 01 27.
If the value of xx on the input side was 7F, my output would be:
FE FE 98 E0 14 02 01 27 FD
The next to the last two hex digits are the 01 27 - decimal value of 7F hex, output as two hex digits.
I tried this text as the output string using ASCII Text as output type:
The log seems to indicate it’s sending the \xFE etc. out as text, not hex bytes:
170: IN 0.4 Control Change on ch. 1 with CC#:9 (0x09) and any value set ‘pp’ to value=64
171: OUT 0.4 wrote \xFE\xFE\x98\xE0\x14\x02064\xFD to COM15 [Numark2]