BMTP : Remember the original state before modification.

  • Q&A Forum
  • [RESOLVED] BMTP : Remember the original state before modification.
0
0

Hello,

I need help with a situation I can’t solve. She’s turning my brain upside down.
I use BOME with Resolume.

I have two effects each linked to a CC. Depending on the state of the effect, Resolume returns a value to me.
Effect N°1 CC102 Inactive = 0 / Active = 127
Effect N°2 CC103 Inactive = 0 / Active = 127

If one is Active, the other is automatically inactive. And vice versa. Resolume immediately returns the value of the state for each effect.
So we have two situations.
First cases CC102 = 0 & CC 103 = 127
Second case CC102 = 127 & CC103 = 0

Now it is getting more complicated.
I have a third parameter CC104 which evolves from 0 to 127
And that’s what I want to do, based on the example of the first case:
CC102 = 0 / CC103 = 127
If CC104 <=10 then CC102 = 0 & CC103 = 0
If CC104 >10 then CC102 = 0 & CC103=127

And on the example of the second case
CC102 = 127 & CC103 = 0
If CC104 <=10 then CC102 = 0 & CC103 = 0
If CC104 >10 then CC102 = 127 & CC103=0

So if CC104 <=10 then CC102 & CC103 is inactive
If CC104 >10 BMT must remember the previous state

I created a rule with a global variable, to remember the first state.
And a second to modify CC 102 & 103 according to CC104

But I can’t get back to the Original state, because when the second rule is executed, the global variable is automatically modified in the first rule.
I need the first rule to be inactive when the second rule is executed.
And that it is active when I want to reverse the state of CC102 & cc103

RESOLVED
Marked as spam
Posted by (Q&A Forum: 4, Answers: 9)
January 7, 2019 1:16 am
30 views

So if I understand, this is what you want and will all be controlled by Resolume feedback

On input from Resolume:

If CC104>10 then CC102 and 103 should be their last known default state
if CC104

( at January 7, 2019 4:11 am)
0
Private answer

Well since you didn’t get back to me, I assume something like the attached is what you are looking for.

There are 3 translators.

The first one captures the value of CC102 into the global variable ga and then passes it on.

The second one captures the value of CC013 into the global variable gb and then passes it on.

The third one looks at the value of CC104 and if it is greater than 10 passes on both the value of CC102 and 103 as well as the value of 104. If less than or equal to 10, it sends value of 0 for CC 102 and 103 and still passes the value of 104.

The output is handled as raw MIDI so that multiple values can be passed within a single translator

B0 66 oo – Is control change MIDI Channel 1 of CC102 (hex 66) value of either ga or 0

B0 67  pp – Is control change MIDI Channel 1 of CC103 (hex 67) value of either gb or 0

B0 68  qq- Is control change MIDI Channel 1 of CC104 (hex 67) value qq (which was the incoming value)

 

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz

Marked as spam
Posted by (Q&A Forum: 36, Answers: 2861)
January 7, 2019 7:39 pm

I continued to work on it after I posted my message.

I have stored the Value of CC104 and CC102 in Global variables.
Translator 1 => cc104 => g0
Translator 2 => cc102 => qq => g1

In the CC102 rules before””qq=g1″”: If g010

It’s a little more complicated than that in my Bome, since it’s a Note that is sent from the controller to the Bome, which transforms the note into cc102 and cc103 which then sends it to resolume and vice versa.
But it works perfectly now.

Bome is really very powerful. We do almost what we want with it.
I bought it 2 or 3 years ago, only to make a “bridge” between my controllers and resolume ( Resolume crashed when I unplugged a controller that was no longer recognized, with Bome serving as a bridge, it no longer happened)
I have recently taken a more serious interest in it since I acquired a Midi Figther Twister.
And I realized that it allows me to do a lot of things that I had in mind but that were impossible until now.

( at January 15, 2019 1:02 am)

Glad you are finding things useful! Yes, Bome can be very powerful in the right hands. Feel free to review our now large collection of tutorials and feel free to ask questions if you get stuck on something.

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz

( at January 15, 2019 2:53 am)