Toggle enabling Preset using 'up/down' of key command

Hi There,

I have an outgoing of enabling/disabling presets using a midi message triggered by holding down a key. AKA when I hold a button down, it enables presets. When I release it disables those presets.

This Incoming shows the same midi signal for depressed or released of the key, but with “note off” or “note on”.

Is there an easy way to change these (there are about 40 of these “up/down” preset toggles) to enable on button press cycle? i.e. 1 up/down of the button

Said another way, I’d like to enable the presets with an up/down of the button, rather than on a hold of the button down. Hopefully I simply adjust my preexisting translators that enable the presets somehow.

Thanks for your help.

Hi, do you mean press once, to enable and press again to disable?

This would be called ‘toggle’ behavior and yes it is possible. If that is what you are looking for I can show you and example.

If you want forty 2 state buttons, we could also do that with only 2 variables using 1 bit per button. An example would be shown on this post where I did that for 64 buttons of an AkaiPro APC-MINI.

Steve Caldwell
Bome Customer Care


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

Yes I’m looking to Toggle presets on and off with a midi signal.

I followed this post’s instructions and was able to map ‘z9’ as a variable, but it’s only working for 1 preset on/off toggle. When I try to add the variable to additional presets it will no longer toggle on/off.

Toggle a keystroke down/up with the same incoming signal? - #4 by namttam1992

Here’s what I put in to the Translator rules per that post to get one of the 40 presets to toggle successfully:

–First press Rules (disables preset):
go=go^1

if go==0 then exit rules, skip Outgoing Action

–Second Press Rules (reenables preset):

if go==1 then exit rules, skip Outgoing Action

Edit: I changed from “z9” to “go” to use a Global Variable if this matters. I assume using the same variable in this many translators for toggle switching presets is causing a conflict, resulting in the toggle state not functioning.

I’m not sure how the APC mini posting you shared is related to toggling presets within MIDI Translator.

Could you share with me your current project file? Also are you talking about computer keystrokes or MIDI controller keystrokes? If MIDI controller keystrokes, it would be helpful to know the note numbers for the 40 buttons, are the consecutive? The reason I ask is because if they are, I can show you a way to do this with less variables which is what I referenced in the previous post. But if you want to use a different variable for every key, that should work as long as the are all global variables.

Steve Caldwell
Bome Customer Care


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

Sure, I’ve attachted to this reply.

It’s just 1 MIDI keystroke I’d like to use to trigger enabling and disabling a number of Bome presets. I’m using a Loupedeck+ and currently have the ‘Fn’ and ‘Custom Mode’ buttons configured to change the presets of the midi controllers to alternative features in Davinici Resolve.

These switcher translators are currently listed under the ‘SWITCHER Fn’ and ‘SWITCHER Custom Mode’ Presets.

Note: I haven’t set up Global Variables yet. I figure that might help make this easier.
Davinci Resolve 19 4k_10.15.24.bmtp (279.3 KB)

Since you are activating/deactivating a bunch of presets with the same note number (note 110), you should only use one global variable and toggle it with the first translator in the series. The reset of the translators should simply follow with the appropriate rules to enable or disable the outgoing preset.

I’ve updated you project file with translators 11.1, 11.2, 11.4 and 11.5. I also changed the incoming note on message to be ‘any velocity’ since my controller sends 127 instead of 64 for note on.

Davinci Resolve 19 4k_10.15.24-sjc.bmtp (279.4 KB)

Steve Caldwell
Bome Customer Care


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

Amazing Thank you Steve!

I second unrelated question, is it possible to program a double click in outgoing?

That is a Click (down+up) x2

Yes, with a timer, however we would need to consider the timing of the clicks. If you have a specific example in mind, please start another thread.

Steve Caldwell
Bome Customer Care


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