Hi All.
I am using a script(at the bottom ) to be able to single tap a controller for an action , double tap it for a differnet action , and hold it for a 3rd action
the same script is duplicated for several controllers i am using
i have found a problem . when i hold a key , lets say key A , which should trigger action 1 , and simultaneously single tap another key that is configured with the same script but with different triggers /action , the hold action on the second key is triggered
so i have button A, that does the foollowing
single tap = action 1
double tap = action 2
hold = action 3
and i have button b , that does
single tap = action 4
double tap = action 5
hold = action 6
if i hold button A and simultaneously single tap button B , i end up with action 3 ,action 4 and action 6 triggered
so the hold action for the key i single tapped gets triggered for some reason
if any of this makes sense to you , is there a way to avoid this from happening
[x] Translator 0: Button Press (Hold Detection) Incoming: MIDI 90 00 7F Rules: ga=1 gb=1 Outgoing: One-shot timer "Hold Detection": 2000 ms delay
[x] Translator 1: Button Press (Double Tap Detection)
Incoming: MIDI 90 00 7F
Rules:
gc=gc+1
if gc>=2 then gc=2
Outgoing: One-shot timer “Double Tap Detection”: 300 ms delay[x] Translator 2: Button Release
Incoming: MIDI 90 00 00
Rules: ga=0
Outgoing: (none)[x] Translator 3: Single Tap Output
Incoming: On timer “Double Tap Detection”
Rules:
if ga==1 then exit rules, skip Outgoing Action
if gc!=1 then exit rules, skip Outgoing Action
Outgoing: MIDI 90 00 7F[x] Translator 4: 2 Second Hold Output
Incoming: On timer “Hold Detection”
Rules:
gb=0
if ga!=1 then exit rules, skip Outgoing Action
Outgoing: MIDI 90 01 7F
[x] Translator 5: Double Tap Output
Incoming: On timer “Double Tap Detection”
Rules:
if gc==2 then skip next 2 rules
gc=0
exit rules, skip Outgoing Action
gc=0
exit rules, execute Outgoing Action
Outgoing: MIDI 90 02 7F