-
Notifications
You must be signed in to change notification settings - Fork 1
/
host.html
362 lines (354 loc) · 23 KB
/
host.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
<!DOCTYPE HTML>
<html lang="en"
xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ResidentSynthHost</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="data:;base64,iVBORwOKGO=" />
<!-- workaround to prevent "favicon not found" exceptions in Chrome.-->
<link href="sliderStyleSheet.css" media="all" rel="stylesheet" type="text/css" />
<link href="hostStyleSheet.css" media="all" rel="stylesheet" type="text/css" />
<!-- Javascript files are included at the end of the body element -->
</head>
<body>
<div class="background">
<!--width 692px-->
<div id="topDiv" style="text-align: center">
<table>
<colgroup>
<col style="width:90px" />
<col style="width:512px" />
<col style="width:90px" />
</colgroup>
<tr>
<td style="vertical-align: top">
<span class="subtitle"><a href="https://james-ingram-act-two.de/open-source/aboutResidentSynthHost.html" target="_blank">Documentation</a></span>
</td>
<td style="text-align: center">
<span class="boldTitle">ResidentSynth Host</span><br />
<span class="subtitle">live performance and recording of the GUI-less ResidentSynth</span>
</td>
<td style="vertical-align: top; text-align: right;">
<span class="subtitle"><a href="https://github.com/notator/ResidentSynthHostTestSite" target="_blank">GitHub</a></span>
</td>
</tr>
</table>
<div style="padding-top: 3px; text-align: center">
<span id="inputDeviceTitle" class="boldSubtitle">Input Device:</span>
<select id="inputDeviceSelect" class="inputDeviceSelect" onchange="ResSynth.host.onInputDeviceSelectChanged()"></select>
<span>
<span id="audioDeviceTitle" class="boldSubtitle">Audio Output:</span>
<select id="audioDeviceSelect" class="audioDeviceSelect" onchange="ResSynth.host.onAudioDeviceSelectChanged()"></select>
</span>
</div>
</div>
<div id="startupDivs">
<div id="loadingMsgDiv" style="text-align: center; margin-top: 15px;">
<span>configuring synthesizer...</span>
</div>
<div id="continueAtStartButtonDiv" style="text-align: center; display: none;">
<input type="button" class="continueAtStartButtonInput" value="continue" onclick="ResSynth.host.onContinueAtStartClicked()" />
</div>
</div>
<div id="synthSettingsDiv" class="synthSettingsDiv" style="display: none;">
<div style="text-align: center">
<div class="subtitle" style="margin-bottom: 3px">ResidentSynth Controls</div>
<span class="boldSubtitle">channel</span>
<select id="channelSelect" class="channelSelect" onchange="ResSynth.host.onChannelSelectChanged()">
<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>
<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>
</select>
</div>
<div id="soundsDiv">
<hr />
<table>
<tr>
<td>
<span class="boldSubtitle">bank: </span>
</td>
<td>
<span class="boldSubtitle">preset: </span>
</td>
<td>
<span class="boldSubtitle">mixture: </span>
</td>
<td>
<span class="boldSubtitle">ornaments: </span>
</td>
</tr>
<tr>
<td>
<select id="bankSelect" class="bankSelect" onchange="ResSynth.host.onBankSelectChanged()" />
</td>
<td id="presetSelectCell">
<select id="presetSelect" class="presetSelect" onchange="ResSynth.host.onPresetSelectChanged()" />
</td>
<td id="mixtureSelectCell">
<select id="mixtureSelect" class="mixtureSelect" onchange="ResSynth.host.onMixtureSelectChanged()" />
</td>
<td>
<select id="ornamentsSelect" class="ornamentsSelect" onchange="ResSynth.host.onKeyOrnamentsSelectChanged()" />
</td>
</tr>
</table>
</div>
<div id="tuningDiv">
<hr />
<table>
<tr>
<td>
<span class="boldSubtitle">tuning group: </span>
</td>
<td>
<span class="boldSubtitle">tuning: </span>
</td>
<td>
<span class="boldSubtitle">+semi</span>
</td>
<td>
<span class="boldSubtitle">+cent</span>
</td>
</tr>
<tr>
<td>
<select id="tuningGroupSelect" class="tuningGroupSelect" onchange="ResSynth.host.onTuningGroupSelectChanged()" />
</td>
<td id="tuningSelectCell"></td>
<td>
<input type="number" id="semitonesOffsetNumberInput" class="numberInput" style="margin: 0" value="0" min="-64" max="63" onchange="ResSynth.host.onSemitonesOffsetNumberInputChanged()" />
</td>
<td>
<input type="number" id="centsOffsetNumberInput" class="numberInput" style="margin: 0" value="0" min="-50" max="50" onchange="ResSynth.host.onCentsOffsetNumberInputChanged()" />
</td>
</tr>
</table>
</div>
<div id="commandsAndControlsDiv">
<hr />
<span class="boldSubtitle">commands and controls:</span>
<table id="commandsAndControlsTable" class="commandAndControlsTable"></table>
</div>
</div>
<div id="hostSettingsDiv" class="hostSettingsDiv" style="display: none">
<div class="subtitle" style="text-align: center; margin-bottom: 4px">Host Controls</div>
<div id="presetSettingsDiv">
<table>
<colgroup>
<col style="width:88px" />
<col style="width:446px" />
<col style="width:126px" />
</colgroup>
<tr>
<td>
<span id="settingsTitle" class="boldSubtitle">preset settings:</span>
</td>
<td>
<select id="settingsSelect" class="settingsSelect" onchange="ResSynth.host.onSettingsSelectChanged()" />
</td>
<td>
<input type="button" id="exportSettingsButtonInput" class="exportSettingsButtonInput" value="export current settings" onclick="ResSynth.host.onExportSettingsButtonClicked()" />
</td>
</tr>
<tr>
<td> </td>
<td><span class="subtitle">This selector can also be controlled using <a href="https://james-ingram-act-two.de/open-source/aboutResidentSynthHost.html" target="_blank"><em>trigger keys</em></a></span></td>
<td> </td>
</tr>
</table>
<hr class="host" style="margin-top:0" />
</div>
<div id="channelPressureDiv">
<table>
<tr id="channelPressureTR">
<td style="padding: 0 10px 0 0">
<span class="boldSubtitle">channel pressure</span><span> (CMD 208)</span><span class="boldSubtitle">:</span>
<select id="channelPressureSelect" class="channelPressureSelect" onchange="ResSynth.host.onChannelPressureSelectChanged()">
<option value="unused">unused</option>
<option value="pitchWheelUp">pitchWheelUp</option>
<option value="pitchWheelDown">pitchWheelDown</option>
<option value="modWheelUp">modWheelUp</option>
<option value="modWheelDown">modWheelDown</option>
<option value="volumeUp">volumeUp</option>
<option value="volumeDown">volumeDown</option>
<option value="expressionUp">expressionUp</option>
<option value="expressionDown">expressionDown</option>
<option value="panLeft">panLeft</option>
<option value="panRight">panRight</option>
<option value="reverberationUp">reverberationUp</option>
<option value="reverberationDown">reverberationDown</option>
</select>
</td>
<!-- ChannelPressure sensitivityLongControl <td>s will be added here. -->
</tr>
</table>
<hr class="host" />
</div>
<div id="keyboardSplitDiv" style="line-height: 16px">
<table>
<colgroup>
<col style="width:330px" />
<col style="width:15px" />
<col style="width:315px" />
</colgroup>
<tr>
<td class="rightBorder">
<span id="keyboardSplitTitle" class="boldSubtitle">keyboardSplit:</span><br />
<select id="keyboardSplitSelect" class="keyboardSplitSelect" onchange="ResSynth.host.onKeyboardSplitSelectChanged()" />
</td>
<td> </td>
<td>
<span class="boldSubtitle">simple input:</span>
<div class="simpleInputNotes">
<span>note</span>
<input type="number" id="notesDivIndexInput1" class="numberInput" name="value" min="0" max="127" value="68" />
<span>velocity</span>
<input type="number" id="notesDivVelocityInput1" class="numberInput" name="value" min="0" max="127" value="100" />
<input type="checkbox" id="sendNote1Checkbox" class="checkBoxInput" onclick="ResSynth.host.noteCheckboxClicked()" />
</div>
</td>
</tr>
<tr>
<td class="rightBorder"> </td>
<td> </td>
<td>
<div class="simpleInputNotes">
<span>note</span>
<input type="number" id="notesDivIndexInput2" class="numberInput" name="value" min="0" max="127" value="64" />
<span>velocity</span>
<input type="number" id="notesDivVelocityInput2" class="numberInput" name="value" min="0" max="127" value="100" />
<input type="checkbox" id="sendNote2Checkbox" class="checkBoxInput" onclick="ResSynth.host.noteCheckboxClicked()" checked="checked" />
<input type="button" id="sendButtonInput" class="sendButtonInput" value="send" onmousedown="ResSynth.host.doNotesOn()" onmouseup="ResSynth.host.doNotesOff()" />
<label>
<input type="checkbox" id="holdCheckbox" class="checkBoxInput" value="hold" onclick="ResSynth.host.holdCheckboxClicked()" />
hold
</label>
</div>
</td>
</tr>
</table>
<hr class="host" style="background:#666" />
</div>
<div id="recordingDiv" style="margin: 12px 0 5px 0">
<table width="660px">
<colgroup>
<col style="width:66px" />
<col style="width:222px" />
<col style="width:132px" />
<col style="width:120px" />
<col style="width:120px" />
</colgroup>
<tr>
<td>
<span id="recordingTitle" class="boldSubtitle">recordings:</span>
</td>
<td>
<select id="recordingSelect" class="recordingSelect" />
</td>
<td>
<input type="button" id="playRecordingButtonInput" class="playRecordingButtonInput" value="play selected recording" onclick="ResSynth.host.onplayRecordingButtonInputClicked()" />
<input type="button" id="cancelPlaybackButtonInput" class="cancelPlaybackButtonInput" value="cancel playback" onclick="ResSynth.host.oncancelPlaybackButtonInputClicked()" />
</td>
<td align="right">
<input type="button" id="discardRecordingButtonInput" class="discardRecordingButtonInput" value="discard recording" onclick="ResSynth.host.ondiscardRecordingButtonInputClicked()" />
</td>
<td align="right">
<input type="button" id="saveRecordingButtonInput" class="saveRecordingButtonInput" value="save recording" onclick="ResSynth.host.onsaveRecordingButtonInputClicked()" />
<input type="button" id="startRecordingButtonInput" class="startRecordingButtonInput" value="start recording ch" onclick="ResSynth.host.onstartRecordingButtonInputClicked()" />
<input type="button" id="stopRecordingButtonInput" class="stopRecordingButtonInput" value="stop recording ch" onclick="ResSynth.host.onstopRecordingButtonInputClicked()" />
</td>
</tr>
</table>
</div>
</div>
</div>
<script src="residentSynth/namespace.js" type="text/javascript"></script>
<script src="residentSynth/constants.js" type="text/javascript"></script>
<!-- The following scripts define all the presets used by the ResidentSynth in this application -->
<script src="residentSynth/config/presets/0000_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0000_GeneralUserGS_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0060_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0060_GeneralUserGS_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0080_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0080_GeneralUserGS_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0090_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0090_GeneralUserGS_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0100_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0100_GeneralUserGS_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0110_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0110_GeneralUserGS_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0120_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0120_GeneralUserGS_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0130_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0130_GeneralUserGS_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0140_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0140_GeneralUserGS_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0150_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0160_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0160_GeneralUserGS_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0240_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0250_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0260_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0270_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<!-- new, interesting Fluid presets -->
<script src="residentSynth/config/presets/0460_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0530_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0580_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0790_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0890_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0920_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0930_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0950_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<!-- some Fluid winds -->
<script src="residentSynth/config/presets/0600_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0660_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0680_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0700_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0710_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/0730_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<!-- Percussion -->
<script src="residentSynth/config/presets/12841_0_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/12845_0_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/12848_0_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/12856_0_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/12859_0_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/12860_0_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/12861_0_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/12862_0_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/12863_0_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/12870_0_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/12873_0_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/12874_0_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/12875_0_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/12876_0_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/12877_0_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/presets/12881_0_FluidR3_GM_sf2_file.js" type="text/javascript"></script>
<script src="residentSynth/config/webAudioFontDef.js" type="text/javascript"></script>
<script src="residentSynth/config/tuningDefs.js" type="text/javascript"></script>
<script src="residentSynth/config/mixtureDefs.js" type="text/javascript"></script>
<script src="residentSynth/config/ornamentDefs.js" type="text/javascript"></script>
<script src="residentSynth/bank.js" type="text/javascript"></script>
<script src="residentSynth/reverberator.js" type="text/javascript"></script>
<script src="residentSynth/tuningsFactory.js" type="text/javascript"></script>
<script src="residentSynth/channelSettings.js" type="text/javascript"></script>
<script src="residentSynth/residentSynth.js" type="text/javascript"></script>
<script src="residentSynth/residentSynthNote.js" type="text/javascript"></script>
<script src="config/synthSettingsDefs.js" type="text/javascript"></script>
<script src="config/keyboardSplitDefs.js" type="text/javascript"></script>
<script src="config/recordings.js" type="text/javascript"></script>
<script src="host.js" type="text/javascript"></script>
</body>
</html>