you can use the separate "Key Down" and "Key Up" types in the
Keystroke outgoing action, e.g. for emulating pressing and separately releasing the key A, with repeat upon pressing and releasing note 64 (hex 0x40) on a MIDI controller:
Code: Select all
Translator Entry 0:
Incoming: MIDI 90 40 7F
Outgoing: Keystroke, Key Down "A" [repeat active]
Translator Entry 1:
Incoming: MIDI 90 40 00
Outgoing: Keystroke, Key Up "A"
Things to consider:
1) Note Off
The example above uses "Note On with 0 velocity" as a Note Off. Your controller may send a Note Off (e.g. 80 40 00) instead. Use MIDI Capture for that.
2) Note On velocity
If your controller is touch sensitive, it will not always send "7F" as velocity in the Note On message. You can deal with this by using a local variable and a rule:
Code: Select all
Incoming: MIDI 90 40 pp
Rules:
if pp == 0 then exit rules, skip outgoing action
Outgoing: Keystroke, Key Down "A" [repeat active]
This way, all Note On's with non-zero velocity will cause the Key Down action.