Key Stroke problem (global variables)

Vitja

2013-10-05 21:59:09

Hi!

I'm newbie here, and I don't know much about Translator. I did some simple things, but now I need some help to solve some
problems I have with global variables.

So, what I want to do:
I remaped my computer keyboard(external) to use it like simple MIDI controller for some MIDI Program Changes and some Ableton Live shortcuts.

Here is my problem:

I want keys 1,2,3,4,5,6,7,8,9,0, to send me a specific Program Change. So I made 10 translators. Very simple.
Now I want to use another Key (like a modifier (shift)), to turn all 10 keys into another bank of Program Changes.
I tried to specify a Right_Shift as global variable:
Right_Shift down

Code: Select all

gc=1
Right_Shift Up

Code: Select all

gc=0
I mad a new translator to first key (1) to work only when shift is down
with rules:

Code: Select all

if gc==1 then exit rules, execute Outgoing Action
if gc==0 then exit rules, skip Outgoing Action
and then MIDI out PC.

and I add rules to translator which should work only when shift is up.

Code: Select all

if gc==1 then exit rules, skip Outgoing Action
if gc==1 then exit rules, execute Outgoing Action
But nothing works.
I know... I'm really starting with this.
Any help would be very appreciated!

Thanx!

DvlsAdvct

2013-10-08 23:46:19

Hi Vitja

Sorry for the delay in a response, but I've been moving, but now I'm settled :)

So the problem you have is because your "execute" and "ignore" functions are looking for the same commands. What you should do instead is use a "does not equal" command since it triggers more effectively. For any command that you want to work when gc=0 then you want the rule to read

Code: Select all

if gc!=0 then exit rules, skip outgoing action
and do the same for when gc=1

Code: Select all

if gc!=1 then exit rules, skip outgoing action
And that should get the job done. :)
Let me know if that doesn't work
J