florian
2009-11-13 22:46:03
A user wants to convert keystroke combinations to MIDI,
e.g.
Ctrl+A -> Note On, Channel 1, key 64
e.g.
Ctrl+A -> Note On, Channel 1, key 64
florian
2009-11-13 22:46:03
florian
2009-11-13 22:58:02
Code: Select all
Translator 1: Shift down: gs=1
Incoming: Key down: Shift
Rules:
gs=1
Outgoing: (none)
Translator 2: Shift up: gs=0
Incoming: Key up: Shift
Rules:
gs=0
Outgoing: (none)
Translator 3: Ctrl down: gc=1
Incoming: Key down: Ctrl
Rules:
gc=1
Outgoing: (none)
Translator 4: Ctrl up: gc=0
Incoming: Key up: Ctrl
Rules:
gc=0
Outgoing: (none)
Translator 5: Alt down: ga=1
Incoming: Key down: Alt
Rules:
ga=1
Outgoing: (none)
Translator 6: Alt up: ga=0
Incoming: Key up: Alt
Rules:
ga=0
Outgoing: (none)
Code: Select all
Translator 1: Ctrl+A down -> Note On, Channel 1, key 64, velocity 127
Options: stop=false
Incoming: Key down: A
Rules:
if gs==1 then exit rules, skip Outgoing Action
if gc==0 then exit rules, skip Outgoing Action
if gs==1 then exit rules, skip Outgoing Action
Outgoing: MIDI 90 40 7F
Translator 2: Ctrl+A up -> Note Off, Channel 1, key 64
Options: stop=false
Incoming: Key up: A
Rules:
if gs==1 then exit rules, skip Outgoing Action
if gc==0 then exit rules, skip Outgoing Action
if gs==1 then exit rules, skip Outgoing Action
Outgoing: MIDI 90 40 00
Translator 3: Shift+W down -> Note On + Note Off key 60
Options: stop=false
Incoming: Key down: W
Rules:
if gs==0 then exit rules, skip Outgoing Action
if gc==1 then exit rules, skip Outgoing Action
if gs==1 then exit rules, skip Outgoing Action
Outgoing: MIDI 90 3C 7F 90 3C 00
Translator 4: Shift+Alt+B down -> CC#1 value 5
Options: stop=false
Incoming: Key down: B
Rules:
if gs==0 then exit rules, skip Outgoing Action
if gc==1 then exit rules, skip Outgoing Action
if gs==0 then exit rules, skip Outgoing Action
Outgoing: MIDI C0 01 05
Dilla4Ever
2010-04-05 06:12:00
RobG
2010-06-05 16:42:17