-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
364 lines (312 loc) · 18.8 KB
/
index.html
File metadata and controls
364 lines (312 loc) · 18.8 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chord Voicing Generator</title>
<!-- Link your compiled JavaScript/TypeScript files from the 'dist' folder -->
<!-- <script src='./node_modules/data-structure-typed/dist/umd/data-structure-typed.js'></script> -->
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@latest/dist/tailwind.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/daisyui@latest/dist/full.css" rel="stylesheet">
<!-- Add other script files if needed -->
<script type="module" src='./dist/index.js'></script>
</head>
<body class="min-h-screen bg-gray-700 text-center">
<h2 class="text-4xl font-bold mb-5 text-white">Chord Voicing Generator</h2>
<form id="chordVoicingGeneratorConfigForm" class="space-y-1">
<!-- Generate Chord Voicings Button -->
<button type="button" onclick="generateVoicings()" class="btn btn-primary btn-lg mb-3">Generate and save
chord voicings</button>
<!-- Select Tuning -->
<div class="selectform-control">
<label for="tuning" class="selectlabel text-white">Select Tuning:</label>
<select id="tuning" name="tuning" class="select select-bordered w-full max-w-xs">
</select>
</div>
<div class="join join-vertical">
<div class="join">
<div class="form-control ml-2 mr-2">
<!-- Select Allowed Key Roots -->
<label for="allowedKeyRoots" class="selectlabel text-white">Allowed key roots:</label>
<select id="allowedKeyRoots" name="allowedKeyRoots"
class="multipleselect multipleselect-lg max-w-xs" multiple>
</select>
</div>
<div class="form-control ml-2 mr-2">
<!-- Searched Keys -->
<label class="selectlabel text-white" for="searchedKeys">Searched keys:</label>
<select id="searchedKeys" name="searchedKeys" class="checkbselect checkbselect-bordered multipleselect multipleselect-lg mb-3"
multiple>
</select>
</div>
</div>
</div>
<div class="flex justify-center">
<div class="text-right">
<div class="join">
<div class="numberform-control ml-2 mr-2">
<!-- First Fret To Scan -->
<label for="firstFretToScan" class="numberlabel text-white">First fret to scan:</label>
<input class="numberinput-lg max-w-xs" type="number" id="firstFretToScan" name="firstFretToScan"
value="1" min="1" max="24" step="1" oninput="restrictToInteger(this)">
</div>
<div class="numberform-control ml-2">
<!-- Last Fret To Scan -->
<label for="lastFretToScan" class="numberlabel text-white">Last fret to scan:</label>
<input class="numberinput-lg max-w-xs" type="number" id="lastFretToScan" name="lastFretToScan"
value="24" min="1" max="24" step="1" oninput="restrictToInteger(this)">
</div>
</div>
<div class="numberform-control mt-1">
<!-- Fret Span -->
<label for="fretSpan" class="numberlabel text-white">Voicing maximum fret span:</label>
<input class="numberinput-lg max-w-xs" type="number" id="fretSpan" name="fretSpan" value="3" min="0"
max="12" step="1" oninput="restrictToInteger(this)">
</div>
<div class="numberform-control mt-1">
<!-- Minimum Semitones Between Notes Of The Voicing -->
<label class="numberlabel text-white" for="minimumSemitonesBetweenNotesOfTheVoicing">Minimum
semitones
between
notes of the
voicing:</label>
<input class="numberinput-lg max-w-xs" type="number" id="minimumSemitonesBetweenNotesOfTheVoicing"
name="minimumSemitonesBetweenNotesOfTheVoicing" value="2" min="0" max="36" step="1"
oninput="restrictToInteger(this)">
</div>
<div class="numberform-control mt-1">
<!-- Minimum Number Of Different Notes -->
<label class="numberlabel text-white" for="minNumberOfDifferentNotes">Minimum number of
different
notes:</label>
<input class="numberinput-lg max-w-xs" type="number" id="minNumberOfDifferentNotes"
name="minNumberOfDifferentNotes" value="3" min="0" max="12" step="1"
oninput="restrictToInteger(this)">
</div>
<div class="numberform-control mt-1">
<!-- Maximum Number Of Different Notes -->
<label class="numberlabel text-white" for="maxNumberOfDifferentNotes">Maximum number of
different
notes:</label>
<input class="numberinput-lg max-w-xs" type="number" id="maxNumberOfDifferentNotes"
name="maxNumberOfDifferentNotes" value="4" min="0" max="12" step="1"
oninput="restrictToInteger(this)">
</div>
<div class="numberform-control mt-1">
<!-- Must Contain At Least This Many Open Strings -->
<label class="numberlabel text-white" for="mustContainAtLeastThisManyOpenStrings">Must contain
at
least
this
many
open
strings:</label>
<input class="numberinput-lg max-w-xs" type="number" id="mustContainAtLeastThisManyOpenStrings"
name="mustContainAtLeastThisManyOpenStrings" value="0" min="0" max="12" step="1"
oninput="restrictToInteger(this)">
</div>
<div class="numberform-control mt-1">
<!-- Must Contain At Most This Many Open Strings -->
<label class="numberlabel text-white" for="mustContainAtMostThisManyOpenStrings">Must contain at
most
this
many
open
strings:</label>
<input class="numberinput-lg max-w-xs" type="number" id="mustContainAtMostThisManyOpenStrings"
name="mustContainAtMostThisManyOpenStrings" value="2" min="0" max="12" step="1"
oninput="restrictToInteger(this)">
</div>
<div class="numberform-control mt-1">
<!-- Minimum Number Of Muted Lowest Strings -->
<label class="numberlabel text-white" for="minimumNumberOfMutedLowestStrings">Minimum number of
muted
lowest
strings:</label>
<input class="numberinput-lg max-w-xs" type="number" id="minimumNumberOfMutedLowestStrings"
name="minimumNumberOfMutedLowestStrings" value="0" min="0" max="12" step="1"
oninput="restrictToInteger(this)">
</div>
<div class="numberform-control mt-1">
<!-- Minimum Number Of Muted Highest Strings -->
<label class="numberlabel text-white" for="minimumNumberOfMutedHighestStrings">Minimum number of
muted
highest
strings:</label>
<input class="numberinput-lg max-w-xs" type="number" id="minimumNumberOfMutedHighestStrings"
name="minimumNumberOfMutedHighestStrings" value="0" min="0" max="12" step="1"
oninput="restrictToInteger(this)">
</div>
</div>
</div>
<div class="join">
<div class="form-control ml-2 mr-2">
<!-- Lowest Note Allowed -->
<label class="label text-white" id="lowestNoteAllowed">Lowest
note
allowed:</label>
<div class="join">
<select id="lowestNoteAllowedNote" name="lowestNoteAllowedNote"
class="select select-bordered w-full max-w-xs " aria-labelledby="lowestNoteAllowed">
</select>
<input class="input input-bordered w-full max-w-xs" type="number" id="lowestNoteAllowedOctave"
name="lowestNoteAllowedOctave" value="2" min="1" max="8" step="1"
oninput="restrictToInteger(this)" aria-labelledby="lowestNoteAllowed">
</div>
</div>
<div class="form-control ml-2 mr-2">
<!-- Highest Note Allowed -->
<label id="highestNoteAllowed" class="label text-white">Highest
note
allowed:</label>
<div class="join ">
<select id="highestNoteAllowedNote" name="highestNoteAllowedNote"
class="select select-bordered w-full max-w-xs" aria-labelledby="highestNoteAllowed">
</select>
<input class="input input-bordered w-full max-w-xs" type="number" id="highestNoteAllowedOctave"
name="highestNoteAllowedOctave" value="6" min="1" max="8" step="1"
oninput="restrictToInteger(this)" aria-labelledby="highestNoteAllowed">
</div>
</div>
</div>
<div class="">
<div class="form-control ">
<!-- Forbid The Same Note On The Same Octave On Different Strings -->
<label class="inline-flex text-white self-center mr-4">
<input class="checkbox checkbox-accent" type="checkbox" checked
id="forbidTheSameNoteOnTheSameOctaveOnDifferentStrings"
name="forbidTheSameNoteOnTheSameOctaveOnDifferentStrings">
<span class="ml-2">Forbid the same note on the same octave on different strings</span>
</label>
</div>
<!-- Master Checkbox -->
<div class="form-control mt-1">
<label class="inline-flex text-white self-center mr-4">
<input class="checkbox checkbox-accent" type="checkbox" id="masterCheckbox" name="masterCheckbox" checked>
<span class="ml-2">Hide all optional chord voicings</span>
</label>
</div>
<div class="form-control mt-1">
<!-- Hide Chord Voicings That Do Not Have A Third Or A Fifth -->
<label class="inline-flex text-white self-center mr-20 ml-5 mt-1">
<input class="chordCheckbox checkbox checkbox-accent" type="checkbox" checked
id="hideChordVoicingsThatDoNotHaveAThirdOrAFifth"
name="hideChordVoicingsThatDoNotHaveAThirdOrAFifth">
<span class="ml-2">Hide chord voicings that have neither a third nor a fifth</span>
</label>
</div>
<div class="form-control join-vertical ">
<div class="join mt-1 self-center">
<div class="form-control mt-1">
<!-- Hide Chord Voicings That Do Not Have A Third Or A Fifth -->
<label class="inline-flex text-white self-center mr-0 ml-8">
<input class="chordCheckbox checkbox checkbox-accent" type="checkbox" checked id="hideSusChordVoicings"
name="hideSusChordVoicings">
<span class="ml-2">Hide sus chord voicings</span>
</label>
</div>
<div class="form-control mt-1">
<!-- Hide Chord Voicings That Do Not Have A Third Or A Fifth -->
<label class="inline-flex text-white self-center mr-2 ml-12">
<input class="chordCheckbox checkbox checkbox-accent" type="checkbox" checked
id="hideChordVoicingsWithno5th" name="hideChordVoicingsWithno5th">
<span class="ml-2">Hide chord voicings with no 5th</span>
</label>
</div>
</div>
<div class="join mt-1 self-center">
<div class="form-control mt-1">
<!-- Hide Chord Voicings That Do Not Have A Third Or A Fifth -->
<label class="inline-flex text-white self-center mr-5">
<input class="chordCheckbox checkbox checkbox-accent" type="checkbox" checked id="hideChordVoicingsWithb5"
name="hideChordVoicingsWithb5">
<span class="ml-2">Hide chord voicings with b5</span>
</label>
</div>
<div class="form-control mt-1">
<!-- Hide Chord Voicings That Do Not Have A Third Or A Fifth -->
<label class="inline-flex text-white self-center mr-1">
<input class="chordCheckbox checkbox checkbox-accent" type="checkbox" checked
id="hideChordVoicingsWithsharp5" name="hideChordVoicingsWithsharp5">
<span class="ml-2">Hide chord voicings with #5</span>
</label>
</div>
</div>
<div class="join mt-1 self-center">
<div class="form-control mt-1">
<!-- Hide Chord Voicings That Do Not Have A Third Or A Fifth -->
<label class="inline-flex text-white self-center ml-4">
<input class="chordCheckbox checkbox checkbox-accent" type="checkbox" checked id="hideChordVoicingsWithb7"
name="hideChordVoicingsWithb7">
<span class="ml-2">Hide chord voicings with b7</span>
</label>
</div>
<div class="form-control mt-1">
<!-- Hide Chord Voicings That Do Not Have A Third Or A Fifth -->
<label class="inline-flex text-white self-center ml-5">
<input class="chordCheckbox checkbox checkbox-accent" type="checkbox" checked
id="hideChordVoicingsWithAdd7" name="hideChordVoicingsWithAdd7">
<span class="ml-2">Hide chord voicings with add7</span>
</label>
</div>
</div>
<div class="join mt-1 self-center">
<div class="form-control mt-1">
<!-- Hide Chord Voicings That Do Not Have A Third Or A Fifth -->
<label class="inline-flex text-white self-center ml-4">
<input class="chordCheckbox checkbox checkbox-accent" type="checkbox" checked id="hideChordVoicingsWithb9"
name="hideChordVoicingsWithb9">
<span class="ml-2">Hide chord voicings with b9</span>
</label>
</div>
<div class="form-control mt-1">
<!-- Hide Chord Voicings That Do Not Have A Third Or A Fifth -->
<label class="inline-flex text-white self-center ml-5">
<input class="chordCheckbox checkbox checkbox-accent" type="checkbox" checked
id="hideChordVoicingsWithAdd9" name="hideChordVoicingsWithAdd9">
<span class="ml-2">Hide chord voicings with add9</span>
</label>
</div>
</div>
<div class="join mt-1 self-center">
<div class="form-control mt-1">
<!-- Hide Chord Voicings That Do Not Have A Third Or A Fifth -->
<label class="inline-flex text-white self-center ml-6">
<input class="chordCheckbox checkbox checkbox-accent" type="checkbox" checked
id="hideChordVoicingsWithb11" name="hideChordVoicingsWithb11">
<span class="ml-2">Hide chord voicings with b11</span>
</label>
</div>
<div class="form-control mt-1">
<!-- Hide Chord Voicings That Do Not Have A Third Or A Fifth -->
<label class="inline-flex text-white self-center ml-3">
<input class="chordCheckbox checkbox checkbox-accent" type="checkbox" checked
id="hideChordVoicingsWithAdd11" name="hideChordVoicingsWithAdd11">
<span class="ml-2">Hide chord voicings with add11</span>
</label>
</div>
</div>
<div class="join mt-1 self-center">
<div class="form-control mt-1">
<!-- Hide Chord Voicings That Do Not Have A Third Or A Fifth -->
<label class="inline-flex text-white self-center ml-6">
<input class="chordCheckbox checkbox checkbox-accent" type="checkbox" checked
id="hideChordVoicingsWithb13" name="hideChordVoicingsWithb13">
<span class="ml-2">Hide chord voicings with b13</span>
</label>
</div>
<div class="form-control mt-1">
<!-- Hide Chord Voicings That Do Not Have A Third Or A Fifth -->
<label class="inline-flex text-white self-center ml-3">
<input class="chordCheckbox checkbox checkbox-accent" type="checkbox" checked
id="hideChordVoicingsWithAdd13" name="hideChordVoicingsWithAdd13">
<span class="ml-2">Hide chord voicings with add13</span>
</label>
</div>
</div>
</div>
</div>
</form>
</body>
</html>