I have a situation in which I have to toggle a button and after the toggle I have to send a momentary CC message.
I defined the outgoing Raw midi as follows:
b0 14 qq b0 15 7f b0 15 00
Value qq is the toggle status, which is 0 or 127. The momentary CC hex 15 (21) needs to send the value 127 first and then the value 0. In Midi Monitor I see that only 21 00 is sent while 21 127 is skipped. What am I doing wrong here?
My guess is that the value of qq is random and not defined in your project so if if it ends up being a byte value of greater that 127, it is seen as some sort of invalid command byte.
The varliable “qq” is a local variable hence unless it is defined, (either in rules or the incoming trigger), the value will be random. Local variables do not retain their values between iterations of a translator. I recomment you use a global variable instead.
There are 10 local variables as follows:
oo,pp,qq,rr,ss,tt,uu,vv,ww,xx
Evertything else would be a global variable which is two letters starting with g-z (but not including the variables above). The second letter can be a-z and 0-9 (but again not the local variable listed above).
When using global variables I usually start with ga, so maybe try that instead of qq.
The use of variables and thier differences are in the user manual. You can use the help menu or press F1 withing Bome MIDI Translator Pro to view the pdf manual.
If my guess is wrong, I would need to actuall look at your project file to figure it out.
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz
The variable qq is defined in the incoming trigger, so that should not be the problem. I hope I attached my file correctly, so you can take a look. I wonder if you get the same result. testrule.bmtp (1.1 KB)
Hi, so are you moving a knob to send these messages?
I think the Beatstep usues accelleration so you might get values like 7C, 7D, 7E and 7F (maybe even lower) for left movements and 01,02,03,04 for positive movements.
I can’t see anything wrong with the project file you posted so maybe the device you are sending these messages to is somehow misinterpreting them.
Here is excerpt from my log. Maybe you should compare with your log window.
I am just pressing a toggle button on the Beatstep to turn something on or off.
I see your log shows all the CC messages. I will have to dig some more. I will let you know my findings. Thank you for the help and the confirmation that it works.
Hello Steve. Somehow the problem got itself solved the next day. I don’t know what happened and I don’t like not knowing the cause of a problem. But at least it works now.