Forgive me if this has already been discussed. I’m new to midi controllers and am not sure I have the right vocabulary to describe what I’m after.
My midi controller, the Loupedeck+, has a function key “Fn” That acts as a secondary modifier key.
How can I capture a midi message that entails an incoming action with 2 separate keys on the midi controller device? E.g. pressing Fn + L1 keys for a unique command (Where L1 is already mapped to another incoming MIDI message)
In the above example you can change the state of a global variable so that the first time you press the button it will be on and the second press, off (toggle).
The way to toggle a global variable would be
ga=ga^1
So incoming note on MIDI channel 1 note 5 value 127
rules
ga=ga^1
qq=0
if ga==1 then qq=127
Outgoing note-on MIDI channel 1 note 5 value qq
Or if you want to only use as a modifier, then you just use the rule with no outgoing action and then you can have another translator to do something like.
incoming : whatever
Rules
pp=0
// which control
// value for ga=0
pp=5
if ga==1 then pp=12
//what value
// value for ga==0
qq=23
if ga==1 then pp=qq
Outgoing: Control change on MIDI channel 1 CC pp value qq
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz