Jazzid
2008-01-07 11:13:25
Sending 1 midi message (a button on a keyboard) needs to cycle 4 keystrokes.
The key strokes are [Ctrl and 1], [Ctrl and 2], [Ctrl and 3], [Ctrl and 4]
After output [Ctrl and 4], I want the rule to cycle back to [Ctrl and 1] at next button-press.
I've fiddled around with the rules, but I've been unable to solve this one.
Can anyone point me in the right direction?
Regards
Jazzid
metastatik
2008-01-08 16:39:43
You need 5 translators and they’d be set up like this.
Translator 1:
Options: Stop processing unchecked
Incoming: B0 01 pp (replace this with the MIDI message you want to use)
Rules: ga=1+ga (every time the MIDI message is sent, the value of ga will increase by 1)
If ga>4 then ga=1 (if the value of ga is greater than 4, the value of ga will return to 1)
Outgoing: None
Translator 2:
Options: Stop processing checked
Incoming: B0 01 pp
Rules: If ga !=1 then exit rules, skip Outgoing Action (if ga doesn’t equal 1, this translator will be skipped)
Outgoing: Ctrl+1
Translator 3:
Options: Stop processing checked
Incoming: B0 01 pp
Rules: If ga !=2 then exit rules, skip Outgoing Action
Outgoing: Ctrl+2
Translator 4:
Options: Stop processing checked
Incoming: B0 01 pp
Rules: If ga !=3 then exit rules, skip Outgoing Action
Outgoing: Ctrl+3
Translator 5:
Options: Stop processing checked
Incoming: B0 01 pp
Rules: If ga !=4 then exit rules, skip Outgoing Action
Outgoing: Ctrl+4
Aphid
2009-04-05 06:10:43
Hi,
This is almost exactly what I've been looking for - but there's one problem.
I'm using this for a beatjuggling hybrid I'm working on - the unfortunate part is that once it get's to the end of the cycle using the above code, it requires a fifth press to return to the beginning.
So, it goes 1st press, 2nd press, third, fourth and then to cycle back to 1, it requires a 5th press (the one where it determines that it needs to reset to 1, from 4).
We need to avoid this for a continuous cycle ie. 1,2,3,4,1,2,3,4,1,2,3,4 NOT 1,2,3,4. 5, 1,2,3,4. 5, 1,2,3,4 etc. Any suggestions?
ruediger
2009-04-06 17:42:07
Hi,
this should be easy.
Translator 1:
Options: Stop processing unchecked
Incoming: B0 01 pp (replace this with the MIDI message you want to use)
Rules: ga=1+ga (every time the MIDI message is sent, the value of ga will increase by 1)
Outgoing: None
Translator 2:
Options: Stop processing checked
Incoming: B0 01 pp
Rules: If ga !=1 then exit rules, skip Outgoing Action (if ga doesn’t equal 1, this translator will be skipped)
Outgoing: Ctrl+1
Translator 3:
Options: Stop processing checked
Incoming: B0 01 pp
Rules: If ga !=2 then exit rules, skip Outgoing Action
Outgoing: Ctrl+2
Translator 4:
Options: Stop processing checked
Incoming: B0 01 pp
Rules: If ga !=3 then exit rules, skip Outgoing Action
Outgoing: Ctrl+3
Translator 5:
Options: Stop processing checked
Incoming: B0 01 pp
Rules: If ga !=4 then exit rules, skip Outgoing Action
ga=0 (if the value of ga is greater than 4, the value of ga will return to 0)
Outgoing: Ctrl+4
Best regards,
Rüdi