Toggling between 2 bome presets with a single button

Hi

I need to toggle bome presets 1 and 2 with a single button as you stated can be done here: only one preset on at a time

Can you please post the code to do this?

 

yes, this is possible, MIDI input will be whatever your button requires. Output will be a one shot timer.

Then four (two pairs) of other translators that trigger on the one shot timer your set up.

 

You then toggle the state of the global variable to determine which pair of timers fire. You should toggle the state in the translator that fires the timer ie:

ga=ga^1

Then each pair of translators look at ga to determine if they should fire

One pair would have this rule

if ga==0 then exit rules, skip outgoing action

The other pair would have this rule

if ga==1 then exit rules skip outgoing action

Each pair of translators would have one translator to activate on preset and another translator to deactivate the other.

Outgoing Action Translator 1 : Activate Preset A

Outgoing Action Translator 2: Deactivate Preset B

And the other pair

Outgoing Action 3 : Deactivate Preset A

Outgoing Action 4: Activate Preset B

 

All of these translators should be with a separate preset that is always active.

Does this make sense to you?

Steve

Bome Forum Moderator and Independent Bome Programmer.

Thank you

See attached.


Attachments:
1547919726195_Preset-Change-with-Button.bmtp