sleepytom
2011-04-19 13:17:54
I'm trying to use presets and global variables, this works to a degree yet it can be very unreliable.
is there a better way to do this? What do your recommend Florian?
sleepytom
2011-04-19 13:17:54
sleepytom
2011-04-21 10:46:25
Attigo
2011-04-26 23:47:07
sleepytom
2011-04-27 10:11:49
DvlsAdvct
2011-04-27 18:54:16
sleepytom
2011-04-27 21:44:20
Code: Select all
: IN 0.0 on activation of this preset (New Preset)
1128: RULE 0.0 assignment: (xx=0) = 0
1129: IN 0.1 MIDI 90 00 7F, pp=0x7F
1130: RULE 0.1 expression: (xx=xx+1) = 631220423
1131: MIDI OUT [Bome's Midi Translator 1 Virtual Out]: 99 00 7F
1132: MIDI OUT [Launchpad (Novation DMS Ltd)]: 99 00 7F
sleepytom
2011-04-27 21:46:25
DvlsAdvct
2011-04-27 21:47:39
sleepytom
2011-04-27 21:50:00
DvlsAdvct
2011-04-27 21:53:41
sleepytom
2011-04-27 21:57:19
Code: Select all
1: IN 0.1 MIDI 90 00 7F
2: RULE 0.1 expression: (h1=h1+1) = 1
3: RULE 0.1 condition satisfied: if h1==1 then pp=0
4: RULE 0.1 assignment: (if h1==1 then pp=0) = 0
5: MIDI OUT [Bome's Midi Translator 1 Virtual Out]: 99 00 00
6: MIDI OUT [Launchpad (Novation DMS Ltd)]: 99 00 00
7: OUT 0.1 MIDI 99 00 00
8: IN 0.1 MIDI 90 00 7F
9: RULE 0.1 expression: (h1=h1+1) = 2
10: RULE 0.1 condition satisfied: if h1>=2 then h1=0
11: RULE 0.1 assignment: (if h1>=2 then h1=0) = 0
12: MIDI OUT [Bome's Midi Translator 1 Virtual Out]: 99 00 00
13: MIDI OUT [Launchpad (Novation DMS Ltd)]: 99 00 00
14: OUT 0.1 MIDI 99 00 00
DvlsAdvct
2011-04-27 22:01:51
sleepytom
2011-04-27 22:03:52
DvlsAdvct
2011-04-27 22:08:32
sleepytom
2011-04-27 22:13:40
Code: Select all
h1=h1+1
if h1==1 then pp=127
if h1==1 then exit rules, execute Outgoing Action
if h1!=0 then pp=0
if h1>=2 then h1=0
DvlsAdvct
2011-04-27 22:15:57
DvlsAdvct
2011-04-29 18:03:03
florian
2011-04-29 19:31:19
Code: Select all
Translator: Toggle MIDI note 00
Incoming: MIDI 90 00 7F
Rules: h1=127-h1
Outging: MIDI 90 00 h1
sleepytom
2011-04-30 12:24:43
Attigo
2011-04-30 13:06:16
sleepytom
2011-04-30 13:19:16
Code: Select all
Project: toggtest
Project MIDI IN ports: Launchpad (Novation DMS Ltd)
Project MIDI OUT ports: Launchpad (Novation DMS Ltd), Bome's Midi Translator 1 Virtual Out
_____________________________________________________________
[x] Preset 0: Toggles
Default MIDI OUT ports: Bome's Midi Translator 1 Virtual Out
[x] Translator 0.0: tAll
Incoming: MIDI 90 pp 7F
Rules:
if pp!=68 then skip next rule
h1=127-h1
if pp!=84 then skip next rule
h2=127-h2
if pp!=100 then skip next rule
h3=127-h3
if pp!=116 then skip next rule
h4=127-h4
if pp!=69 then skip next rule
h5=127-h5
if pp!=85 then skip next rule
h6=127-h6
if pp!=101 then skip next rule
h7=127-h7
if pp!=117 then skip next rule
h8=127-h8
if pp!=70 then skip next rule
j1=127-j1
if pp!=86 then skip next rule
j2=127-j2
if pp!=102 then skip next rule
j3=127-j3
if pp!=118 then skip next rule
j4=127-j4
if pp!=71 then skip next rule
j5=127-j5
if pp!=87 then skip next rule
j6=127-j6
if pp!=103 then skip next rule
j7=127-j7
if pp!=119 then skip next rule
j8=127-j8
Outgoing: (none)
_____________________________________________________________
[x] Preset 1: Lights
Default MIDI OUT ports: Launchpad (Novation DMS Ltd)
[x] Translator 1.0: LtAll
Incoming: MIDI 90 pp 7F
Rules:
if pp!=68 then skip next 2 rules
if h1==0 then qq=90
if h1==127 then qq=78
if pp!=84 then skip next 2 rules
if h2==0 then qq=90
if h2==127 then qq=78
if pp!=100 then skip next 2 rules
if h3==0 then qq=90
if h3==127 then qq=78
if pp!=116 then skip next 2 rules
if h4==0 then qq=90
if h4==127 then qq=78
if pp!=69 then skip next 2 rules
if h5==0 then qq=90
if h5==127 then qq=78
if pp!=85 then skip next 2 rules
if h6==0 then qq=90
if h6==127 then qq=78
if pp!=101 then skip next 2 rules
if h7==0 then qq=90
if h7==127 then qq=78
if pp!=117 then skip next 2 rules
if h8==0 then qq=90
if h8==127 then qq=78
if pp!=70 then skip next 2 rules
if j1==0 then qq=90
if j1==127 then qq=78
if pp!=86 then skip next 2 rules
if j2==0 then qq=90
if j2==127 then qq=78
if pp!=102 then skip next 2 rules
if j3==0 then qq=90
if j3==127 then qq=78
if pp!=118 then skip next 2 rules
if j4==0 then qq=90
if j4==127 then qq=78
if pp!=71 then skip next 2 rules
if j5==0 then qq=90
if j5==127 then qq=78
if pp!=87 then skip next 2 rules
if j6==0 then qq=90
if j6==127 then qq=78
if pp!=103 then skip next 2 rules
if j7==0 then qq=90
if j7==127 then qq=78
if pp!=119 then skip next 2 rules
if j8==0 then qq=90
if j8==127 then qq=78
Outgoing: MIDI 90 pp qq
_____________________________________________________________
[x] Preset 2: MidiOut
Default MIDI OUT ports: Bome's Midi Translator 1 Virtual Out
[x] Translator 2.0: LtAll
Incoming: MIDI 90 pp 7F
Rules:
if pp!=68 then skip next 2 rules
if h1==0 then qq=0
if h1==127 then qq=127
if pp!=84 then skip next 2 rules
if h2==0 then qq=0
if h2==127 then qq=127
if pp!=100 then skip next 2 rules
if h3==0 then qq=0
if h3==127 then qq=127
if pp!=116 then skip next 2 rules
if h4==0 then qq=0
if h4==127 then qq=127
if pp!=69 then skip next 2 rules
if h5==0 then qq=0
if h5==127 then qq=127
if pp!=85 then skip next 2 rules
if h6==0 then qq=0
if h6==127 then qq=127
if pp!=101 then skip next 2 rules
if h7==0 then qq=0
if h7==127 then qq=127
if pp!=117 then skip next 2 rules
if h8==0 then qq=0
if h8==127 then qq=127
if pp!=70 then skip next 2 rules
if j1==0 then qq=0
if j1==127 then qq=127
if pp!=86 then skip next 2 rules
if j2==0 then qq=0
if j2==127 then qq=127
if pp!=102 then skip next 2 rules
if j3==0 then qq=0
if j3==127 then qq=127
if pp!=118 then skip next 2 rules
if j4==0 then qq=0
if j4==127 then qq=127
if pp!=71 then skip next 2 rules
if j5==0 then qq=0
if j5==127 then qq=127
if pp!=87 then skip next 2 rules
if j6==0 then qq=0
if j6==127 then qq=127
if pp!=103 then skip next 2 rules
if j7==0 then qq=0
if j7==127 then qq=127
if pp!=119 then skip next 2 rules
if j8==0 then qq=0
if j8==127 then qq=127
Outgoing: MIDI 90 pp qq