I would like to use the Serial Port output of MIDI Translator to connect to a virtual serial port created by the Eltima Virtual Serial Port Emulator (VSPE) software.
The virtual serial port create by VSPE does not appear in the Outgoing → Serial Ports list.
Just set it up and that works, thanks!
My application is probably a bit off the beaten path… I have a Numark MIDI console that I want to use to control a remote ham radio transceiver. I use software that accepts commands via a serial port and I was just able to use the TEST button to successfully issue a command to the remote radio from MIDI Translator → Virtual Serial port. Now I need to learn about mapping the Numark controller buttons, sliders and dials to the various serial port output strings.
I was going to try and code this all in Python but MIDI Translator is going to make this much easier!
Cheers and thanks for the very helpful and fast response!
Rowland
I’m trying to convert a variable obtained from a hex input string to a decimal value that is output as 2 hex digits.
Example:
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:
\xFE\xFE\x98\xE0\x14\x020%d pp%\xFD
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]
That’s great, thanks so much Steve!
Who knows why the engineers decided to mix hex and BCD in one command string but probably have BCD registers to load for volume control.
Yes, some engineers thing more like engineers rather than users. I’m sure it was just easier to implement that way or they may have done the implementation in haste and later discovered just to leave it as implemented.