KenC
2012-07-03 11:26:46
I'm trying to come up with a preset so that I can press 3 keys on my MIDI keyboard that will then activate a typing keyboard mode, so those 3 keys held down acts as a switch that turns on my typing mode.
This is so I can still use my MIDI keyboard to play these keys separately, but when they are all held down they act as a switch.
I've set up 3 triggers for C0,C#0 and D0 (octave 0), each one sets one of global variables ga,gb and gc to 1 when that key is held down.
Now I'm stuck at how to check if these 3 are all 1 in another trigger rules, and only then execute the outgoing action to finally send the key when another key on my MIDI keyboard is pressed.
I've tried lots of things in the rules section, but I keep getting errors.
What I'd need is something like:
I press the C1 key, the rules then check:
If (ga==1 AND gb==1 and gc== 1) then exit rules, execute Outgoing Action
Has anyone tried doing something like this and perhaps know how to do this?
This is so I can still use my MIDI keyboard to play these keys separately, but when they are all held down they act as a switch.
I've set up 3 triggers for C0,C#0 and D0 (octave 0), each one sets one of global variables ga,gb and gc to 1 when that key is held down.
Now I'm stuck at how to check if these 3 are all 1 in another trigger rules, and only then execute the outgoing action to finally send the key when another key on my MIDI keyboard is pressed.
I've tried lots of things in the rules section, but I keep getting errors.
What I'd need is something like:
I press the C1 key, the rules then check:
If (ga==1 AND gb==1 and gc== 1) then exit rules, execute Outgoing Action
Has anyone tried doing something like this and perhaps know how to do this?