Dawo
2011-11-15 23:00:32
Hello,
i`ve got a simple problem but i get stuck with this.
let`s say i have got a midicontroller with a toggle button. it sends "90 34 7f" when pressed and "80 34 7f" when released. i want MT to control the built in led of this button. the message to turn it on is 90 32 7f and 80 32 7f will turn it off. MT should remember the status off the led. by default it is on. when i press the button the first time the led should stop glowing. the next time i press the button it should glow again and so on.
here is what i tried:
this is not working. where am i wrong?
thanks in advance!
i`ve got a simple problem but i get stuck with this.
let`s say i have got a midicontroller with a toggle button. it sends "90 34 7f" when pressed and "80 34 7f" when released. i want MT to control the built in led of this button. the message to turn it on is 90 32 7f and 80 32 7f will turn it off. MT should remember the status off the led. by default it is on. when i press the button the first time the led should stop glowing. the next time i press the button it should glow again and so on.
here is what i tried:
Code: Select all
translator#1:
Incoming: MIDI "90 34 7f" -- port=controller
Rules
if g0==0 then exit rules, execute outgoing action
Outgoing: MIDI "80 32 7f" -- port=controller
translator#2:
Incoming: MIDI "90 34 7f" -- port=controller
Rules
if g0==1 then exit rules, execute outgoing action
Outgoing: MIDI "90 32 7f" -- port=controller
translator#3:
Incoming: MIDI "90 34 7f" -- port=controller
Rules
if g0==0 then assign g0=1
if g0==1 then assign g0=0
Outgoing: none
thanks in advance!