Hi, and welcome to the Bome Forum.
The attached should do what you want it to do. Either enable the first or second preset but not both as they behave differently.
The first preset uses a timer to continually send Up Keystrokes if right of center. If you turn your knob left of center it sends Down Keystrokes. If you keep it close to center, keystrokes stop. This is good if you don’t want to run out of room since a knob will have hard stops.
In the second preset, we send up and down keystrokes depending on the movement of the encoder but if you run against a stop at the right or left, of course, you cannot move it any more. However I have set it so with the push of a button (note message) you can suppress keystrokes, which allow you to re-center the pot.
So What will you need to do:
- Define your Aliases for My Controller, and Capture1. I used my Faderfox EC4 and Bome MIDI Translator 1
- Change the CC message to map that of your pot on your LaunchControl XL.
- If you want similar behavior for other CC’s then you need to add global variable for each CC you want to add. This is needed because you would have to know the last known position of each pot to determine it’s direction. The No Timer Preset Option is less complex.
- Change your outgoing keystrokes for what Capture1 is using.
The rules look at the current value of the incoming CC and compare to the last known value to determine whether to send an Up or Down Keystroke. Only one of the two keystroke translators will fire depending on the direction and the rules of the translators.
In the second preset I use the value of ga to determine whether to suppress keystrokes and gb for the last known location of the knob.
The first translator sets ga to 1 when you press a button (signaling suppression of outgoing keystroke to calibrate the knob).
The second translator (releasing the button) sets ga back to 0
The third and forth translators will only fire if ga=0
The third will only fire if the direction is up.
The forth will only fire if the direction is down.
For the second knob, duplicate the first 4 translators in preset 2 and change the incoming CC as well as the global variables (change ga to gc and gb to gd). Also change the outgoing keystrokes
The first preset should remain disabled and it should probably just be used for advanced study.
Absolute-Encoder-to-Keystroke-Capture1-2021-02-18.bmtp (2.7 KB)
Good luck!
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz