momentary switch in to a latching switch

RichardTravers

2015-05-15 18:40:58

Hello, I have midi controller (Vestax VMC-600) I am completely new to Bome.

I am trying to make the lights on the controller light up when I click them on and off, so far (using Bome) I can make them only light when I hold them down, how do I change this behavior using Bome? To make them Latch on and off?

RichardTravers

2015-05-15 20:07:30

Someone in a previous thread wrote this, but i don't understand it, bome doesn't Seem to have a *

Turning a momentary button into a toggle switch is easy, but it depends on the message that is being sent.

What you want to do is use a translator that will cut out the "off" message and switch it to the second press of the button. It would look something like:

Code: Select all
Translator 1: Momentary to Toggle
Incoming Message: 90 30 7F
Rules: g0=g0+1
if g0>1 then g0=0
if pp=g0*127
Outgoing Message: 90 30 pp


This way, on the first press your outgoing message is 127 (1*127) and the second press is 0 (0*127). Since you don't process the outgoing 00 it should be ignored.

DvlsAdvct

2015-05-15 20:11:04

Hi Richard

You can type those rules in, so just typing a * (shift + 8 ) will put an asterisk in to the rules menu.

Jared

RichardTravers

2015-05-15 20:30:01

hmm, doesn't seem to work. Any ideas?


http://postimg.org/image/w2r40cc4d/

Bigchap88

2015-05-15 20:58:52

Hi Richard,

I'm also new to BMT and also had help with Jared. Can you post your .bmtp file and I'll have a look to see if our solutions are similar.

DvlsAdvct

2015-05-15 21:50:28

Oh,it doesn't work because the rule in the example you found in the forum is wrong.

You want the rules to read as:

Code: Select all

g0=g0+1
if g0>1 then g0=0
pp=g0*127
That entry that starts with pp should not have an If in front of it.
Jared