-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
271 lines (234 loc) · 12.3 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
<!DOCTYPE html>
<html>
<!--------------------------------------------------------------------------------->
<!-- the header has all the includes -->
<!--------------------------------------------------------------------------------->
<header>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<script src="js/buttons.js"></script>
<script src="js/main.js"></script>
<script src="js/menus.js"></script>
<script src="js/projectData.js"></script>
<script src="js/patternScreen.js"></script>
<script src="js/patchScreen.js"></script>
<script src="js/tableScreen.js"></script>
<script src="js/contextMenu.js"></script>
<script src="js/automateScreen.js"></script>
<script src="js/envelopeScreen.js"></script>
<script src="js/i2cScreen.js"></script>
<script src="js/inputRecordScreen.js"></script>
<script src="js/mappingScreen.js"></script>
<script src="js/midiScreen.js"></script>
<script src="js/randomRangesScreen.js"></script>
<script src="js/scaleQuantizeScreen.js"></script>
<script src="js/trackScreen.js"></script>
<!-- So can load in google font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<!-- Load in Space Mono font from Google. Not using pixelated one because couldn't find adequaet match -->
<link href="https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&family=VT323&display=swap" rel="stylesheet">
<!-- Load in material symbols font so can display things like pause/play/record/musical note/etc.
Note: setting specific opsz=30, wght=600, fill=0, GRAD=200 to get icons to look good.
This is described at https://developers.google.com/fonts/docs/material_symbols -->
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@30,600,0,200" rel="stylesheet" />
<!-- Load in all the css files -->
<link rel="stylesheet" type="text/css" href="css/nerdseqLayout.css">
<link rel="stylesheet" type="text/css" href="css/colors.css">
<link rel="stylesheet" type="text/css" href="css/allScreens.css">
<link rel="stylesheet" type="text/css" href="css/allMenus.css">
</header>
<body>
<!--------------------------------------------------------------------------------->
<!-- the virtual Nerdseq -->
<!--------------------------------------------------------------------------------->
<!-- Display picture of Nerdseq. The width of course affects where the virtual buttons need to be located -->
<image src='images/fullNerdseqModule.jpg' style='width:1500px; min-width:1500px'/>
<!-- Create mostly transparent html buttons over physical buttons so can get click events -->
<button id='sequencer' class='rectangleButton'
onclick='sequencerClicked(event)' oncontextmenu='sequencerClicked(event)'></button>
<button id='pattern' class='rectangleButton'
onclick='patternClicked(event)' oncontextmenu='patternClicked(event)'></button>
<button id='patch' class='rectangleButton'
onclick='patchClicked(event)' oncontextmenu='patchClicked(event)'></button>
<button id='table' class='rectangleButton'
onclick='tableClicked(event)' oncontextmenu='tableClicked(event)'></button>
<button id='automate' class='rectangleButton'
onclick='automateClicked(event)' oncontextmenu='automateClicked(event)'></button>
<button id='project' class='rectangleButton'
onclick='projectClicked(event)' oncontextmenu='projectClicked(event)'></button>
<button id='start' class='squareButton'
onclick='startClicked(event)' oncontextmenu='startClicked(event)'></button>
<button id='stop' class='squareButton'
onclick='stopClicked(event)' oncontextmenu='stopClicked(event)'></button>
<button id='up' class='squareButton'
onclick='upClicked(event)' oncontextmenu='upClicked(event)'></button>
<button id='ok' class='squareButton'
onclick='okClicked(event)' oncontextmenu='okClicked(event)'></button>
<button id='down' class='squareButton'
onclick='downClicked(event)' oncontextmenu='downClicked(event)'></button>
<button id='upArrow' class='squareButton'
onclick='upArrowClicked(event)' oncontextmenu='upArrowClicked(event)'></button>
<button id='downArrow' class='squareButton'
onclick='downArrowClicked(event)' oncontextmenu='downArrowClicked(event)'></button>
<button id='leftArrow' class='squareButton'
onclick='leftArrowClicked(event)' oncontextmenu='leftArrowClicked(event)'></button>
<button id='rightArrow' class='squareButton'
onclick='rightArrowClicked(event)' oncontextmenu='rightArrowClicked(event)'></button>
</body>
<!-- Create all the tables that will be the virtual screens for the NerdSeq -->
<!--------------------------------------------------------------------------------->
<!-- the Sequencer Screen -->
<!--------------------------------------------------------------------------------->
<div id='sequencerScreenHtml'></div>
<script>$('#sequencerScreenHtml').load('html/sequencerScreen.html');</script>
<!--------------------------------------------------------------------------------->
<!-- the Pattern Screen -->
<!--------------------------------------------------------------------------------->
<div id='patternHtml'></div>
<script>$('#patternHtml').load('html/pattern.html');</script>
<!----------------h----------------------------------------------------------------->
<!-- the Patch Screen -->
<!--------------------------------------------------------------------------------->
<table id='patchScreen' class='virtualScreen virtualScreenContainer'>
<tr class='widerBorderOnBottom titleRow'>
<td></td><td class='screenTitle'>Patch Screen</td>
</tr>
<tr style='height=100%'>
<td>This is where the content will go</td><td></td>
</tr>
</table>
<!--------------------------------------------------------------------------------->
<!-- the Table Screen -->
<!--------------------------------------------------------------------------------->
<table id='tableScreen' class='virtualScreen virtualScreenContainer'>
<tr class='widerBorderOnBottom titleRow'>
<td></td><td class='screenTitle'>Table Screen</td>
</tr>
<tr style='height=100%'>
<td>This is where the content will go</td><td></td>
</tr>
</table>
<!--------------------------------------------------------------------------------->
<!-- the Screen Select Menu (via the repurposed Automate button) -->
<!--------------------------------------------------------------------------------->
<div id='screenSelectMenuHtml'></div>
<script>$('#screenSelectMenuHtml').load('html/screenSelectMenu.html');</script>
<!--------------------------------------------------------------------------------->
<!-- the Project Menu -->
<!--------------------------------------------------------------------------------->
<div id='projectMenuHtml'></div>
<script>$('#projectMenuHtml').load('html/projectMenu.html');</script>
<!--------------------------------------------------------------------------------->
<!-- the System Menu (for the "Setup" button) -->
<!--------------------------------------------------------------------------------->
<div id='systemMenuHtml'></div>
<script>$('#systemMenuHtml').load('html/systemMenu.html');</script>
<!--------------------------------------------------------------------------------->
<!-- the Automate Setup Screen -->
<!--------------------------------------------------------------------------------->
<table id='automateScreen' class='virtualScreen virtualScreenContainer'>
<tr class='widerBorderOnBottom titleRow'>
<td></td><td class='screenTitle'>Automation Setup</td>
</tr>
<tr style='height=100%'>
<td>This is where the content will go</td><td></td>
</tr>
</table>
<!--------------------------------------------------------------------------------->
<!-- the Envelope Setup Screen -->
<!--------------------------------------------------------------------------------->
<table id='envelopeScreen' class='virtualScreen virtualScreenContainer'>
<tr class='widerBorderOnBottom titleRow'>
<td></td><td class='screenTitle'>Envelope Setup</td>
</tr>
<tr style='height=100%'>
<td>This is where the content will go</td><td></td>
</tr>
</table>
<!--------------------------------------------------------------------------------->
<!-- the I2C Setup Screen -->
<!--------------------------------------------------------------------------------->
<table id='i2cScreen' class='virtualScreen virtualScreenContainer'>
<tr class='widerBorderOnBottom titleRow'>
<td></td><td class='screenTitle'>I2C Setup</td>
</tr>
<tr style='height=100%'>
<td>This is where the content will go</td><td></td>
</tr>
</table>
<!--------------------------------------------------------------------------------->
<!-- the Input/Record Setup Screen -->
<!--------------------------------------------------------------------------------->
<table id='inputRecordScreen' class='virtualScreen virtualScreenContainer'>
<tr class='widerBorderOnBottom titleRow'>
<td></td><td class='screenTitle'>Input/Record Setup</td>
</tr>
<tr style='height=100%'>
<td>This is where the content will go</td><td></td>
</tr>
</table>
<!--------------------------------------------------------------------------------->
<!-- the Mapping Setup Screen -->
<!--------------------------------------------------------------------------------->
<table id='mappingScreen' class='virtualScreen virtualScreenContainer'>
<tr class='widerBorderOnBottom titleRow'>
<td></td><td class='screenTitle'>Mapping frandSetup</td>
</tr>
<tr style='height=100%'>
<td>This is where the content will go</td><td></td>
</tr>
</table>
<!--------------------------------------------------------------------------------->
<!-- the Midi Setup Screen -->
<!--------------------------------------------------------------------------------->
<table id='midiScreen' class='virtualScreen virtualScreenContainer'>
<tr class='widerBorderOnBottom titleRow'>
<td></td><td class='screenTitle'>Midi Setup</td>
</tr>
<tr style='height=100%'>
<td>This is where the content will go</td><td></td>
</tr>
</table>
<!--------------------------------------------------------------------------------->
<!-- the Random Setup Screen -->
<!--------------------------------------------------------------------------------->
<table id='randomRangesScreen' class='virtualScreen virtualScreenContainer'>
<tr class='widerBorderOnBottom titleRow'>
<td></td><td class='screenTitle'>Random Ranges Setup</td>
</tr>
<tr style='height=100%'>
<td>This is where the content will go</td><td></td>
</tr>
</table>
<!--------------------------------------------------------------------------------->
<!-- the Scale/Quantize Setup Screen -->
<!--------------------------------------------------------------------------------->
<table id='scaleQuantizeScreen' class='virtualScreen virtualScreenContainer'>
<tr class='widerBorderOnBottom titleRow'>
<td></td><td class='screenTitle'>Scale/Quantize Setup</td>
</tr>
<tr style='height=100%'>
<td>This is where the content will go</td><td></td>
</tr>
</table>
<!--------------------------------------------------------------------------------->
<!-- the Track Setup Screen -->
<!--------------------------------------------------------------------------------->
<table id='trackScreen' class='virtualScreen virtualScreenContainer'>
<tr class='widerBorderOnBottom titleRow'>
<td></td><td class='screenTitle'>Track Setup</td>
</tr>
<tr style='height=100%'>
<td>This is where the content will go</td><td></td>
</tr>
</table>
<!--------------------------------------------------------------------------------->
<!-- Startup by displaying the Sequencer Screen -->
<!--------------------------------------------------------------------------------->
<script>
addLoadEvent(function() {
// Display the current values of the project data
_project.updateUI();
});
</script>
<html>