Midi value to Keyboard text

k2zvuk

2013-09-29 21:43:28

Hi,

I try to solve how to translate incoming MIDI Controller value into
keyboard value, with absolute or relative translation.

e.g. absolute
B0 07 64 (Controller 07 on MIDI channel 1 value 100 (decimal))
to keyboard: <CTRL+t> 100 <ENTER>
B0 07 65 (Controller 07 on MIDI channel 1 value 101 (decimal))
to keyboard: <CTRL+t> 101 <ENTER>

e.g. relative while 100 (decimal) is zero value
B0 07 65 (Controller 07 on MIDI channel 1 value 101 (decimal))
to keyboard: <CTRL+t> +1 <ENTER>
B0 07 63 (Controller 07 on MIDI channel 1 value 99 (decimal))
to keyboard: <CTRL+t> -1 <ENTER>
B0 07 66 (Controller 07 on MIDI channel 1 value 101 (decimal))
to keyboard: <CTRL+t> +2 <ENTER>
B0 07 62 (Controller 07 on MIDI channel 1 value 99 (decimal))
to keyboard: <CTRL+t> -2 <ENTER>
e.t.c.

Of sure I can write 127 commands, but it's not what I'm looking for.

Regards.

Martin Merc

DvlsAdvct

2013-09-30 16:33:30

Hi k2zvuk

Just to be clear, you want MT to output the decimal value of whatever your hex value is using keystrokes, right? That's... not going to be easy at all. You can't use global or local variables while sending keystrokes, so while you can easily have two translators to send the Ctrl + T and the Enter commands, the keystrokes for the MIDI values is not possible without using one translator for each numerical value of the last byte of data.

Let me know how we can help
Thanks
Jared