-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
379 lines (352 loc) · 25 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Ground Control Pro Editor</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-ui-bootstrap/0.5pre/css/custom-theme/jquery-ui-1.10.0.custom.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-jgrowl/1.4.3/jquery.jgrowl.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.10/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.10/css/dataTables.bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/3.3.2/css/bootstrap2/bootstrap-switch.min.css">
<link href='https://fonts.googleapis.com/css?family=Archivo+Black' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Dancing+Script' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div id="logo">
<p>GROUND CONTROL<span class="pro">Pro</span></p>
</div>
<div id="gcp_wrapper">
<div class="panel-group" id="gcp" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="configHeader">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#gcp" href="#configPanel" aria-expanded="true" aria-controls="configPanel">Configuration</a>
</h4>
</div>
<div id="configPanel" class="panel-collapse collapse" role="tabpanel" aria-labelledby="configHeader">
<div class="panel-body">
<div role="tabpanel">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active">
<a href="#devices" aria-controls="devices" role="tab" data-toggle="tab">Devices</a>
</li>
<li role="presentation">
<a href="#pedals" aria-controls="pedals" role="tab" data-toggle="tab">Pedals</a>
</li>
<li role="presentation">
<a href="#expanders" aria-controls="expanders" role="tab" data-toggle="tab">Expanders</a>
</li>
<li role="presentation">
<a href="#midi" aria-controls="midi" role="tab" data-toggle="tab">MIDI</a>
</li>
<li role="presentation">
<a href="#instant" aria-controls="instant" role="tab" data-toggle="tab">Instant Access</a>
</li>
<li role="presentation">
<a href="#utility" aria-controls="utility" role="tab" data-toggle="tab">Utility</a>
</li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="devices">
<div class="device" data-device="0">
<div class="checkbox">
<label>
<input type="checkbox" class="device_enabled"> <span class="device_enabled_title">Device #1</span>
</label>
</div>
<form class="form-inline">
<fieldset>
<div class="form-group">
<label>Name <input type="text" class="form-control deviceName" size="9" maxlength="8"></label>
</div>
<div class="form-group">
<label>Channel <select class="form-control deviceChannel">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
</select></label>
</div>
<div class="form-group">
<label>Program Offset <select class="form-control deviceProgramOffset"><option value="0">1..128</option><option value="1">0..127</option></select></label>
</div>
</fieldset>
</form>
</div>
<!-- Replicated by js -->
</div>
<div role="tabpanel" class="tab-pane" id="pedals">
<div class="form-group">
<label>Pedal 1 <input type="checkbox" class="pedal" data-pedal="0" data-size="mini"></label>
</div>
<div class="form-group">
<label>Pedal 2 <input type="checkbox" class="pedal" data-pedal="1" data-size="mini"></label>
</div>
<div class="form-group">
<label>VCA <input type="checkbox" class="vca" data-pedal="0" data-size="mini"></label>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="expanders">
<div class="form-group">
<label>Number of GCXs <select class="form-control numGCX">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select></label>
</div>
<div class="form-group gcxSwitchTypes"></div>
</div>
<div role="tabpanel" class="tab-pane" id="instant">
<div class="form-group instantAccessBtn" data-btn="0">
<label>Button <span>1</span>
<select class="form-control switchFunction">
<option value="0">GCX 1</option>
<option value="1">GCX 2</option>
<option value="2">GCX 3</option>
<option value="3">GCX 4</option>
<option value="4">Sequence Start/Stop</option>
<option value="5">MIDI Channel #1</option>
<option value="6">MIDI Channel #2</option>
<option value="7">MIDI Channel #3</option>
<option value="8">MIDI Channel #4</option>
<option value="9">MIDI Channel #5</option>
<option value="10">MIDI Channel #6</option>
<option value="11">MIDI Channel #7</option>
<option value="12">MIDI Channel #8</option>
<option value="13">MIDI Channel #9</option>
<option value="14">MIDI Channel #10</option>
<option value="15">MIDI Channel #11</option>
<option value="16">MIDI Channel #12</option>
<option value="17">MIDI Channel #13</option>
<option value="18">MIDI Channel #14</option>
<option value="19">MIDI Channel #15</option>
<option value="20">MIDI Channel #16</option>
</select>
</label>
<label>Function Detail
<select class="form-control switchFunctionDetail">
</select>
</label>
<label>Switch Type
<select class="form-control switchType">
<option value="0">Latching</option>
<option value="1">Momentary</option>
</select>
</label>
<label>Transmit CC
<select class="form-control transmitCC">
<option value="0">No</option>
<option value="1">Yes</option>
</select>
</label>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="utility">
<div class="form-group">
<label>Program Access Mode
<select class="form-control programAccessMode">
<option value="0">Bank of 10</option>
<option value="1">Bank of 4</option>
</select>
</label>
</div>
<div class="form-group">
<label>Directory Speed
<select class="form-control directorySpeed">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</label>
</div>
<div class="form-group">
<label>Global Program
<select class="form-control softOptions_global">
<option value="0">Off</option>
<option value="1">On</option>
</select>
</label>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="midi">
<div class="checkbox">
<label>
<input type="checkbox" class="softOptions_respond"/> Respond to Program Change
</label>
</div>
<div class="form-group">
<label>Program Change Receive Channel
<!-- despite the spec saying this is from 0..15 it looks like the GCP expects 1..16 -->
<select class="form-control programReceiveChannel">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
</select>
</label>
</div>
<div class="form-group">
<label>Link Mode
<select class="form-control softOptions_linkMode">
<option value="0">None</option>
<option value="1">Master</option>
<option value="2">Slave</option>
</select>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="presetHeader">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#gcp" href="#presetPanel" aria-expanded="true" aria-controls="configPanel">Presets</a>
</h4>
</div>
<div id="presetPanel" class="panel-collapse collapse" role="tabpanel" aria-labelledby="presetHeader">
<div class="panel-body">
<div role="tabpanel">
<ul class="nav nav-tabs" role="tablist">
<!-- li role="presentation" class="active">
<a href="#bank0" aria-controls="presets" role="tab" data-toggle="tab">Bank 0</a>
</li -->
<!-- Inserted by js -->
</ul>
<div class="tab-content">
<!--
<div role="tabpanel" class="tab-pane active" id="bank0">
<div class="preset" data-preset="0">
<form class="form-inline">
<div class="form-group">
<label>Preset <span class="preset-label-num">0</span> <input type="text" class="form-control presetName" size="11" maxlength="10"></label>
</div>
<div class="deviceProgramChanges form-group">
</div>
<div class="presetPedals">
<button type="button" class="btn btn-default">Pedals</button>
</div>
<div class="loopStates">
<button type="button" class="btn btn-default">GCX Loop States</button>
</div>
<div class="iaStates">
<button type="button" class="btn btn-default">Instant Access</button>
</div>
</form>
</div> -->
<!-- Inserted by js -->
</div>
<!-- Replicated by js -->
</div>
</div>
</div>
</div>
</div>
</div>
<div id="buttons_wrapper">
<button id="copy-presets" class="btn btn-default" type="button" data-next="done">Copy Presets</button>
<button id="import-presets" class="btn btn-default" type="button">Import Presets</button>
<button id="download" class="btn btn-default" type="button">Download .syx</button>
<button id="export-csv" class="btn btn-default" type="button">Export Presets CSV</button>
<button id="import-csv" class="btn btn-default" type="button">Import Presets CSV</button>
</div>
</div>
<div id="drop">
<div id="drop_zone">Drop .syx file here</div>
</div>
<div id="about">
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-4">
<h1>About</h1>
<p>This editor will allow you build a configuration or edit an existing configuration for the Voodoo Labs Ground Control Pro MIDI
Foot Controller.</p>
<p>If you also use a TriAxis, you might be interested in my <a href="http://triaxiseditor.com">TriAxis Preset Editor</a></p>
<h1>Contact</h1>
<p>If you find this useful, drop me a note on <a href="https://philpot.org/@mark">Mastodon</a> and let me know.</p>
<p>The source code is available <a href="https://github.com/markphilpot/gcpeditor">here</a> on Github. If you find any bugs, please file an issue.</p>
</div>
<div class="col-md-4">
<h1>Instructions</h1>
<p>To customize an existing dump, drop the syx file in the region indicated or you can start with a blank configuration.</p>
<p>To import individual presets from an alternate syx dump and merge into the current configuration, select "Import Presets"</p>
<p>Select "Download .syx" to download the resulting configuration.</p>
<h1>Disclaimers</h1>
<p>This editor is still undergoing testing. It is currently being tested against a GCP with firmware v1.13</p>
<p><em>Always</em> have backups of your configurations. Use at your own discretion.</p>
</div>
<div class="col-md-2"></div>
</div>
</div>
<!-- Templates -->
<div style="display: none;">
<div class="preset" data-preset="0" id="presetTemplate">
<form class="form-inline">
<div class="form-group">
<label>Preset <span class="preset-label-num">0</span> <input type="text" class="form-control presetName" size="11" maxlength="10"></label>
</div>
<div class="deviceProgramChanges form-group">
</div>
<div class="presetPedals">
<button type="button" class="btn btn-default">Pedals</button>
</div>
<div class="loopStates">
<button type="button" class="btn btn-default">GCX Loop States</button>
</div>
<div class="iaStates">
<button type="button" class="btn btn-default">Instant Access</button>
</div>
</form>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootbox.js/4.4.0/bootbox.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2014-11-29/FileSaver.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/sprintf/1.0.3/sprintf.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-jgrowl/1.4.3/jquery.jgrowl.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.10/js/jquery.dataTables.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.10/js/dataTables.bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/3.3.2/js/bootstrap-switch.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/4.1.2/papaparse.min.js"></script>
<script src="js/gcp.js"></script>
<script src="js/main.js"></script>
</body>
</html>