MIDI to Key Not Working In App

Just purchased MIDI Translator Pro for one single purpose - play music game via my 37 key MIDI piano keyboard instead of computer keyboard, that is it.

I’m really sorry for being such a noob, but all those routes, ports, channels settings are way too complicated for me.

I managed to get it working, to some extent, it seems my MIDI piano keyboard is able to type what I tell it to type in an Excel sheet, however, it just won’t press the keys in the game app and I just can’t figure out why.

Much appreciated if anyone can help me out on that!

Hi and welcome to the Bome community!

It is possible that your app does not have current keyboard focus when you are sending computer keystrokes. I assume you are translating MIDI to computer keystrokes.

If you want to automatically focus the target application prior to sending keystrokes, please refer to this tutorial how it can be done.

If after reviewing this and you still cannot get it to work, please post your project file, and I am happy to take a look at it.

Keep in mind you will want to use a ‘key down’ action when pressing a key on your keyboard (note on) and a ‘key up’ action (note off) when releasing the key.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz

Hi Steve,

Thanks so much for your prompt response!

I have trouble with understanding “channel”, “port”, “virtual mini ports” etc. The only thing I am sure of is to choose my MIDI device as the “MIDI IN PORT”, but I really don’t understand which output port or ports I should have and which one(s) to route to.

I have previously watched the tutorial, but unfortunately I still can’t get it working.

Attached is my project file, could you please take a look at it and hopefully point out the potential problem here?

Thanks again!

WWM MUSIC MIDI TO KEY.bmtp (1010 Bytes)

Yes, I can see this is rather complicated due to the shift and control keystrokes that you need.

The attached example should help get you started.

Preset 0 is part of my standard project initiation template. The only thing relevent here is that I set the global variable ga to a delay paramter for keystrokes in the rules of translator 0.2 (Preset 0 translator 2)

Translator 1.0 should focus your wmm application. Translator 1.1 was just used for testing with my editor since I do not have wmm on my system. I disabled it.

Translators 1.2 through 1.5 handle shift keys using the perform action which are called from rules of the translators 1.8 and above (when shift or control is needed)

Translator 1.6 looks at the incoming key and determines if it is a note-on or off and also captures the note number. If a shift or control is needed it is called in the rules (as I explained earlier)
Translatore 1.8-1.15 are the 4 keys that I programmed. You need separate translators for down and up actions in this case.

Each pair of translators looks at the note number in rules and if it is not the target will do nothing. If it is the target, it calls (in rules) control or shift as needed and send the keystroke.

I leave it to you to copy/paste and then modify the remaining 32 keys. You will need to modify

  1. The target key number in first rule of the translator
  2. The modifiers as needed in the rules
  3. The outgoing keystroke as well whether it is an up or down key.

Translator 1.8 , 1.9,1.12 and 1.13 do not use a modifier (shift or control)
Translators 1.10 and 1.11 use a shift modifier in rules
Translators 1.14 and 1.15 use a control modifier in rules

Hopefully, in studying this example, you will see the pattern.
I suggest you copy the translator pair for existing modifiers and paste and edit them for the remaining keys that need to be set up.

Since the outgoing action are computer keystrokes, no MIDI output is needed.

I tested using my LaunchKey Mini. Here is how I set up my alias. You will need to point it to your action MIDI keyboard.

You can learn more about aliases from this tutorial.

For device selection, I set it up at the preset level so that if your keyboard changes, all you need to change is preset 1 and none of the translators within.

For more information about device selection, see this tutorial.

I can see how a new person would struggle with this. I’ve been programming in Bome MIDI Translator Pro for years and it took me a while since the keystrokes your application needs are quite unique (need modifiers) .

WWM MUSIC MIDI TO KEY-sjc.bmtp (7.8 KB)

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz