Subversion Repositories svn.mios32

Rev

Rev 2049 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2049 tk 1
 
2
# This script tests that 4 MCU units can be emulated by MIDIbox NG
3
#
4
# Note that the configuration is far from completion - the intention is to
5
# check if there is any blocking point when a single USB MIDI connection with
6
# 4 MIDI IO ports is used.
7
#
8
# Result: Logic 10 automatically detects 4 MCUs and starts the communication
9
################################################################################
10
11
 
12
LCD "%C@(1:1:1)MC"
13
14
 
15
 
16
# SysEx communication
17
################################################################################
18
19
 
20
#   0x10 : Logic Control
21
#   0x11 : Logic Control XT
22
#   0x14 : Mackie Control
23
#   0x15 : Mackie Control XT
24
SYSEX_VAR dev=0x15
25
26
 
27
 
28
# MCU1 via USB1
29
################################################################################
30
31
 
32
EVENT_RECEIVER id=101  fwd_id=SENDER:101 \
33
               ports=1000000000000000 \
34
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x00 0xf7"
35
EVENT_SENDER   id=101 \
36
               ports=1000000000000000 \
37
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x01 0x4d 0x42 0x4e 0x47 0x56 0x31 0x00 0x00 0x00 0x00 0xf7"
38
39
 
40
 
41
EVENT_RECEIVER id=102  fwd_id=SENDER:102 \
42
               ports=1000000000000000 \
43
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x02 0xf7"
44
EVENT_SENDER   id=102 \
45
               ports=1000000000000000 \
46
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x03 0x4d 0x42 0x4e 0x47 0x56 0x31 0xf7"
47
48
 
49
 
50
EVENT_RECEIVER id=103  fwd_id=SENDER:103 \
51
               ports=1000000000000000 \
52
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x13 00 0xf7"
53
EVENT_SENDER   id=103 \
54
               ports=1000000000000000 \
55
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x14 0x56 0x31 0x2e 0x34 0x32 0xf7"
56
57
 
58
 
59
EVENT_RECEIVER id=104  fwd_id=SENDER:104 \
60
               ports=1000000000000000 \
61
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x1a 0xf7"
62
EVENT_SENDER   id=104 \
63
               ports=1000000000000000 \
64
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x1b 0x42 0xf7"
65
66
 
67
 
68
 
69
# MCU2 via USB2
70
################################################################################
71
72
 
73
EVENT_RECEIVER id=201  fwd_id=SENDER:201 \
74
               ports=0100000000000000 \
75
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x00 0xf7"
76
EVENT_SENDER   id=201 \
77
               ports=0100000000000000 \
78
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x01 0x4d 0x42 0x4e 0x47 0x56 0x31 0x00 0x00 0x00 0x00 0xf7"
79
80
 
81
 
82
EVENT_RECEIVER id=202  fwd_id=SENDER:202 \
83
               ports=0100000000000000 \
84
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x02 0xf7"
85
EVENT_SENDER   id=202 \
86
               ports=0100000000000000 \
87
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x03 0x4d 0x42 0x4e 0x47 0x56 0x31 0xf7"
88
89
 
90
 
91
EVENT_RECEIVER id=203  fwd_id=SENDER:203 \
92
               ports=0100000000000000 \
93
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x13 00 0xf7"
94
EVENT_SENDER   id=203 \
95
               ports=0100000000000000 \
96
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x14 0x56 0x31 0x2e 0x34 0x32 0xf7"
97
98
 
99
 
100
EVENT_RECEIVER id=204  fwd_id=SENDER:204 \
101
               ports=0100000000000000 \
102
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x1a 0xf7"
103
EVENT_SENDER   id=204 \
104
               ports=0100000000000000 \
105
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x1b 0x42 0xf7"
106
107
 
108
 
109
 
110
# MCU3 via USB3
111
################################################################################
112
113
 
114
EVENT_RECEIVER id=301  fwd_id=SENDER:301 \
115
               ports=0010000000000000 \
116
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x00 0xf7"
117
EVENT_SENDER   id=301 \
118
               ports=0010000000000000 \
119
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x01 0x4d 0x42 0x4e 0x47 0x56 0x31 0x00 0x00 0x00 0x00 0xf7"
120
121
 
122
 
123
EVENT_RECEIVER id=302  fwd_id=SENDER:302 \
124
               ports=0010000000000000 \
125
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x02 0xf7"
126
EVENT_SENDER   id=302 \
127
               ports=0010000000000000 \
128
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x03 0x4d 0x42 0x4e 0x47 0x56 0x31 0xf7"
129
130
 
131
 
132
EVENT_RECEIVER id=303  fwd_id=SENDER:303 \
133
               ports=0010000000000000 \
134
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x13 00 0xf7"
135
EVENT_SENDER   id=303 \
136
               ports=0010000000000000 \
137
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x14 0x56 0x31 0x2e 0x34 0x32 0xf7"
138
139
 
140
 
141
EVENT_RECEIVER id=304  fwd_id=SENDER:304 \
142
               ports=0010000000000000 \
143
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x1a 0xf7"
144
EVENT_SENDER   id=304 \
145
               ports=0010000000000000 \
146
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x1b 0x42 0xf7"
147
148
 
149
 
150
 
151
# MCU4 via USB4
152
################################################################################
153
154
 
155
EVENT_RECEIVER id=401  fwd_id=SENDER:401 \
156
               ports=0001000000000000 \
157
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x00 0xf7"
158
EVENT_SENDER   id=401 \
159
               ports=0001000000000000 \
160
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x01 0x4d 0x42 0x4e 0x47 0x56 0x31 0x00 0x00 0x00 0x00 0xf7"
161
162
 
163
 
164
EVENT_RECEIVER id=402  fwd_id=SENDER:402 \
165
               ports=0001000000000000 \
166
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x02 0xf7"
167
EVENT_SENDER   id=402 \
168
               ports=0001000000000000 \
169
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x03 0x4d 0x42 0x4e 0x47 0x56 0x31 0xf7"
170
171
 
172
 
173
EVENT_RECEIVER id=403  fwd_id=SENDER:403 \
174
               ports=0001000000000000 \
175
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x13 00 0xf7"
176
EVENT_SENDER   id=403 \
177
               ports=0001000000000000 \
178
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x14 0x56 0x31 0x2e 0x34 0x32 0xf7"
179
180
 
181
 
182
EVENT_RECEIVER id=404  fwd_id=SENDER:404 \
183
               ports=0001000000000000 \
184
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x1a 0xf7"
185
EVENT_SENDER   id=404 \
186
               ports=0001000000000000 \
187
               type=SysEx stream="0xf0 0x00 0x00 0x66 ^dev 0x1b 0x42 0xf7"
188
189
 
190
 
191
# Motorfaders
192
################################################################################
193
194
 
195
# They have to be configured for Motormix protocol!
196
# Each MBHP_MF_NG is connected to a dedicated MIDI IN/OUT port via J11E of the MBHP_CORE_STM32F4 module
197
# Note: no config_port=USBx has been configured, since this would result into a feedback loop
198
# For calibration, just use another .ngc script which enables 'config_port=USB1 ... USB3' for each MF unit
199
MF n=1  enabled=1  midi_in_port=IN1  midi_out_port=OUT1  chn=1  ts_first_button_id=2001
200
MF n=2  enabled=1  midi_in_port=IN2  midi_out_port=OUT2  chn=1  ts_first_button_id=2101
201
MF n=3  enabled=1  midi_in_port=IN3  midi_out_port=OUT3  chn=1  ts_first_button_id=2201
202
MF n=4  enabled=1  midi_in_port=IN4  midi_out_port=OUT4  chn=1  ts_first_button_id=2301
203
204
 
205
EVENT_MF  id= 1  ports=1000000000000000  type=PitchBend  chn= 1  range=0:16383
206
EVENT_MF  id= 2  ports=1000000000000000  type=PitchBend  chn= 2  range=0:16383
207
EVENT_MF  id= 3  ports=1000000000000000  type=PitchBend  chn= 3  range=0:16383
208
EVENT_MF  id= 4  ports=1000000000000000  type=PitchBend  chn= 4  range=0:16383
209
EVENT_MF  id= 5  ports=1000000000000000  type=PitchBend  chn= 5  range=0:16383
210
EVENT_MF  id= 6  ports=1000000000000000  type=PitchBend  chn= 6  range=0:16383
211
EVENT_MF  id= 7  ports=1000000000000000  type=PitchBend  chn= 7  range=0:16383
212
EVENT_MF  id= 8  ports=1000000000000000  type=PitchBend  chn= 8  range=0:16383
213
214
 
215
EVENT_MF  id=10  ports=0100000000000000  type=PitchBend  chn= 2  range=0:16383
216
EVENT_MF  id=11  ports=0100000000000000  type=PitchBend  chn= 3  range=0:16383
217
EVENT_MF  id=12  ports=0100000000000000  type=PitchBend  chn= 4  range=0:16383
218
EVENT_MF  id=13  ports=0100000000000000  type=PitchBend  chn= 5  range=0:16383
219
EVENT_MF  id=14  ports=0100000000000000  type=PitchBend  chn= 6  range=0:16383
220
EVENT_MF  id=15  ports=0100000000000000  type=PitchBend  chn= 7  range=0:16383
221
EVENT_MF  id=16  ports=0100000000000000  type=PitchBend  chn= 8  range=0:16383
222
223
 
224
EVENT_MF  id=18  ports=0010000000000000  type=PitchBend  chn= 2  range=0:16383
225
EVENT_MF  id=19  ports=0010000000000000  type=PitchBend  chn= 3  range=0:16383
226
EVENT_MF  id=20  ports=0010000000000000  type=PitchBend  chn= 4  range=0:16383
227
EVENT_MF  id=21  ports=0010000000000000  type=PitchBend  chn= 5  range=0:16383
228
EVENT_MF  id=22  ports=0010000000000000  type=PitchBend  chn= 6  range=0:16383
229
EVENT_MF  id=23  ports=0010000000000000  type=PitchBend  chn= 7  range=0:16383
230
EVENT_MF  id=24  ports=0010000000000000  type=PitchBend  chn= 8  range=0:16383
231
232
 
233
EVENT_MF  id=26  ports=0001000000000000  type=PitchBend  chn= 2  range=0:16383
234
EVENT_MF  id=27  ports=0001000000000000  type=PitchBend  chn= 3  range=0:16383
235
EVENT_MF  id=28  ports=0001000000000000  type=PitchBend  chn= 4  range=0:16383
236
EVENT_MF  id=29  ports=0001000000000000  type=PitchBend  chn= 5  range=0:16383
237
EVENT_MF  id=30  ports=0001000000000000  type=PitchBend  chn= 6  range=0:16383
238
EVENT_MF  id=31  ports=0001000000000000  type=PitchBend  chn= 7  range=0:16383
239
EVENT_MF  id=32  ports=0001000000000000  type=PitchBend  chn= 8  range=0:16383
240
241
 
242
EVENT_BUTTON  id= 2001  ports=1000000000000000  type=NoteOn chn= 1 key=0x68  range=0:127
243
EVENT_BUTTON  id= 2002  ports=1000000000000000  type=NoteOn chn= 1 key=0x69  range=0:127
244
EVENT_BUTTON  id= 2003  ports=1000000000000000  type=NoteOn chn= 1 key=0x70  range=0:127
245
EVENT_BUTTON  id= 2004  ports=1000000000000000  type=NoteOn chn= 1 key=0x71  range=0:127
246
EVENT_BUTTON  id= 2005  ports=1000000000000000  type=NoteOn chn= 1 key=0x72  range=0:127
247
EVENT_BUTTON  id= 2006  ports=1000000000000000  type=NoteOn chn= 1 key=0x73  range=0:127
248
EVENT_BUTTON  id= 2007  ports=1000000000000000  type=NoteOn chn= 1 key=0x74  range=0:127
249
EVENT_BUTTON  id= 2008  ports=1000000000000000  type=NoteOn chn= 1 key=0x75  range=0:127
250
251
 
252
EVENT_BUTTON  id= 2102  ports=0100000000000000  type=NoteOn chn= 1 key=0x69  range=0:127
253
EVENT_BUTTON  id= 2103  ports=0100000000000000  type=NoteOn chn= 1 key=0x70  range=0:127
254
EVENT_BUTTON  id= 2104  ports=0100000000000000  type=NoteOn chn= 1 key=0x71  range=0:127
255
EVENT_BUTTON  id= 2105  ports=0100000000000000  type=NoteOn chn= 1 key=0x72  range=0:127
256
EVENT_BUTTON  id= 2106  ports=0100000000000000  type=NoteOn chn= 1 key=0x73  range=0:127
257
EVENT_BUTTON  id= 2107  ports=0100000000000000  type=NoteOn chn= 1 key=0x74  range=0:127
258
EVENT_BUTTON  id= 2108  ports=0100000000000000  type=NoteOn chn= 1 key=0x75  range=0:127
259
260
 
261
EVENT_BUTTON  id= 2202  ports=0010000000000000  type=NoteOn chn= 1 key=0x69  range=0:127
262
EVENT_BUTTON  id= 2203  ports=0010000000000000  type=NoteOn chn= 1 key=0x70  range=0:127
263
EVENT_BUTTON  id= 2204  ports=0010000000000000  type=NoteOn chn= 1 key=0x71  range=0:127
264
EVENT_BUTTON  id= 2205  ports=0010000000000000  type=NoteOn chn= 1 key=0x72  range=0:127
265
EVENT_BUTTON  id= 2206  ports=0010000000000000  type=NoteOn chn= 1 key=0x73  range=0:127
266
EVENT_BUTTON  id= 2207  ports=0010000000000000  type=NoteOn chn= 1 key=0x74  range=0:127
267
EVENT_BUTTON  id= 2208  ports=0010000000000000  type=NoteOn chn= 1 key=0x75  range=0:127
268
269
 
270
EVENT_BUTTON  id= 2302  ports=0001000000000000  type=NoteOn chn= 1 key=0x69  range=0:127
271
EVENT_BUTTON  id= 2303  ports=0001000000000000  type=NoteOn chn= 1 key=0x70  range=0:127
272
EVENT_BUTTON  id= 2304  ports=0001000000000000  type=NoteOn chn= 1 key=0x71  range=0:127
273
EVENT_BUTTON  id= 2305  ports=0001000000000000  type=NoteOn chn= 1 key=0x72  range=0:127
274
EVENT_BUTTON  id= 2306  ports=0001000000000000  type=NoteOn chn= 1 key=0x73  range=0:127
275
EVENT_BUTTON  id= 2307  ports=0001000000000000  type=NoteOn chn= 1 key=0x74  range=0:127
276
EVENT_BUTTON  id= 2308  ports=0001000000000000  type=NoteOn chn= 1 key=0x75  range=0:127
277