-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathindex.html
492 lines (448 loc) · 29 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
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
<!DOCTYPE html>
<html unused_manifest="gscribe.manifest">
<!-- HTML for the Groove Writer part of the Groove Scribe HTML application -->
<!--Copyright 2015-2020 Lou Montulli, Mike Johnston GPL V2.0 Please See LICENSE.txt for more details -->
<head>
<title>Groove Scribe</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="images/gscribe-icon-192.png">
<link rel="icon" sizes="96x96" href="images/gscribe-icon-96.png">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<!--meta property="og:image" content="https://mikeslessons.com/groove/images/GScribe_Logo_on_orange.png"> -->
<meta property="og:description" content="Groove Scribe allows drummers to easily create grooves, listen, share, print sheet music, and more. Use the Groove Scribe to create new grooves, figure out the groove to your favorite song, or write down the groove to your latest tune."/>
<meta property="og:site_name" content="GrooveScribe at MikesLessons.com"/>
<script>
document.write('<meta property="og:image" content="https://gscribe-png-image.herokuapp.com/' + window.location.search + '">');
</script>
<meta property="og:image" content="https://mikeslessons.com/groove/images/GScribe_Logo_on_orange.png">
<link rel="stylesheet" type="text/css" href="font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/share-button.min.css">
<link rel="stylesheet" type="text/css" href="css/groove_writer_orange.css">
<link rel="stylesheet" type="text/css" href="css/groove_display_orange.css">
<link href='https://fonts.googleapis.com/css?family=Lato:400,700,300' rel='stylesheet' type='text/css'>
<!-- Other peoples JS libraries -->
<!-- <script src="./MIDI.js/js/MIDI/MIDI.JS.min.js" type="text/javascript"></script> -->
<script src="./MIDI.js/js/MIDI/AudioDetect.js" type="text/javascript"></script>
<script src="./MIDI.js/js/MIDI/LoadPlugin.js" type="text/javascript"></script>
<script src="./MIDI.js/js/MIDI/Plugin.js" type="text/javascript"></script>
<script src="./MIDI.js/js/MIDI/Player.js" type="text/javascript"></script>
<script src="./MIDI.js/inc/DOMLoader.XMLHttp.js" type="text/javascript"></script>
<script src="./MIDI.js/inc/jasmid/stream.js"></script>
<script src="./MIDI.js/inc/jasmid/midifile.js"></script>
<script src="./MIDI.js/inc/jasmid/replayer.js"></script>
<script src="./MIDI.js/inc/Base64.js"></script>
<script src="./MIDI.js/inc/base64binary.js"></script>
<!-- script to render ABC to an SVG image -->
<script type="text/javascript" src="./js/abc2svg-1.js"></script>
<!-- script to convert SVG to PNGs for download -->
<script type="text/javascript" src="./js/pablo.min.js"></script>
<!-- script for sharing to social sites -->
<script src="js/share-button.min.js"></script>
<!-- Minified version: <script src="./js/groove_writer.min.js" type="text/javascript"></script> -->
<!-- jsmidgen for generating a midi file -->
<script src="./js/jsmidgen.js" type="text/javascript"></script>
<!-- our custom JS -->
<script src="js/groove_writer.js"></script>
<script src="js/groove_utils.js"></script>
<script src="js/grooves.js"></script>
<script type="text/javascript">
/*jslint browser:true evil:true on:true */
/*global GrooveWriter, grooves */
// instantiate a global instance of the GrooveWriterClass. This page only uses one
var myGrooveWriter = new GrooveWriter();
if (myGrooveWriter.myGrooveUtils.grooveDBAuthoring) {
document.write('<link rel="stylesheet" type="text/css" href="css/grooveDB_authoring.css">');
}
if (myGrooveWriter.myGrooveUtils.debugMode) {
document.write('<link rel="stylesheet" type="text/css" href="css/groove_debug.css">');
}
</script>
</head>
<body>
<div id="GrooveWriter">
<div class="nonPrintable">
<div id="LeftHandNav">
<span id="divisionButtonContainer">
<span id="logoInSubdivision" class="left-button-content"><img src="images/GScribe_Logo_lone_g.svg"></span>
<span class="left-button edit-block" id="timeLabel" onclick="myGrooveWriter.timeSigPopupOpen();"><span class="left-button-content"><span><span id="timeSigLabel" class="buttonFraction"><sup>4</sup>/<sub>4</sub></span><span id="timeSubLabel">TIME</span></span></span></span>
<span class="left-button subdivision edit-block" id="subdivision_8ths" onclick="myGrooveWriter.changeDivision(8);"><span class="left-button-content"><span><span class="buttonFraction"><sup>1</sup>/<sub>8</sub></span>NOTES</span></span></span>
<span class="left-button subdivision edit-block" id="subdivision_16ths" onclick="myGrooveWriter.changeDivision(16);"><span class="left-button-content"><span><span class="buttonFraction"><sup>1</sup>/<sub>16</sub></span>NOTES</span></span></span>
<span class="left-button subdivision edit-block" id="subdivision_32ths" onclick="myGrooveWriter.changeDivision(32);"><span class="left-button-content"><span><span class="buttonFraction"><sup>1</sup>/<sub>32</sub></span>NOTES</span></span></span>
<span class="left-button subdivision edit-block" id="subdivision_12ths" onclick="myGrooveWriter.changeDivision(12);"><span class="left-button-content"><span><span class="buttonFraction"><sup>1</sup>/<sub>8</sub></span>TRIPLETS</span></span></span>
<span class="left-button subdivision edit-block" id="subdivision_24ths" onclick="myGrooveWriter.changeDivision(24);"><span class="left-button-content"><span><span class="buttonFraction"><sup>1</sup>/<sub>16</sub></span>TRIPLETS</span></span></span>
<span class="left-button subdivision edit-block" id="subdivision_48ths" onclick="myGrooveWriter.changeDivision(48);"><span class="left-button-content"><span>MIXED<br>Division</span></span></span>
<script>
if (!myGrooveWriter.myGrooveUtils.grooveDBAuthoring) {
document.write('<span class="left-button" onclick="myGrooveWriter.swapViewEditMode();"><span class="left-button-content"><span id="view-edit-switch" >Switch to EDIT mode</span></span></span>');
}
</script>
<script>
if (myGrooveWriter.myGrooveUtils.is_touch_device()) {
document.write('<span class="left-button edit-block" id="advancedEditAnchor" onclick="event.preventDefault(); myGrooveWriter.toggleAdvancedEdit()"><span class="left-button-content">Advanced Edit</span></span>');
}
</script>
<span class="left-button edit-block" id="undoButton" onclick="myGrooveWriter.undoCommand();"><span class="left-button-content"><i class="fa fa-undo"></i> Undo</span></span>
</span>
</div>
<div id="TopNav" class="fullWidthEle">
<span id="logoTextUpperLeft"><img src="images/GScribe_Logo_word_stack.svg"></span>
<span id="upperLeft">
<span id="metronomeContainer">
<span id="metronomeLabel">METRONOME:</span>
<span class="metronomeButton" id="metronomeOff" onclick="myGrooveWriter.setMetronomeFrequency(0);">OFF</span>
<span class="metronomeButton" id="metronome4ths" onclick="myGrooveWriter.setMetronomeFrequency(4);">4th</span>
<span class="metronomeButton" id="metronome8ths" onclick="myGrooveWriter.setMetronomeFrequency(8);">8th</span>
<span class="metronomeButton" id="metronome16ths" onclick="myGrooveWriter.setMetronomeFrequency(16);">16th</span>
<span class="metronomeButton Options grooveDB_hidden" id="metronomeOptionsAnchor" onclick="myGrooveWriter.metronomeOptionsAnchorClick(event);">Options</span>
</span>
</span>
<span id="upperRight">
<span class="rightButtons grooveDB_hidden" id="permutationAnchor" onclick="myGrooveWriter.permutationAnchorClick(event);"><i class="fa fa-bars"></i> Permutations</span>
<span class="rightButtons" id="groovesAnchor" onclick="myGrooveWriter.groovesAnchorClick(event);"><i class="fa fa-bars"></i> Grooves</span>
<span class="rightButtons" id="helpAnchor" onclick="myGrooveWriter.helpAnchorClick(event);"><i class="fa fa-bars"></i> Help</span>
</span>
</div>
<div id="midiPlayer" class="fullWidthEle"><!-- space for the midiplayer to be attached by the javascript --></div>
</div>
<div id="RightHandContent">
<div class="nonPrintable">
<div id="PermutationOptions">
<script type="text/javascript">
var genHTML = "";
genHTML += myGrooveWriter.HTMLforPermutationOptions();
document.write(genHTML);
</script>
</div>
</div>
<div class="Printable">
<!-- rendering area -->
<div id="sheetMusicDiv" class="fullWidthEle">
<div id="svgTarget" class="svgTarget">
<!-- space for the SVG sheet music to display -->
</div>
</div>
</div>
<div class="nonPrintable">
<p class="warnings">Warnings:</p>
<div class="warnings" id="diverr">
</div>
<div id="sheetMusicTextFields" class="fullWidthEle grooveDB_hidden edit-block">
<span class="sheetMusicTextField"><b>Title:</b> <input class="sheetMusicInputField" id="tuneTitle" onchange="myGrooveWriter.refresh_ABC();" type="text"></span>
<span class="sheetMusicTextField"><b>Author:</b> <input class="sheetMusicInputField" id="tuneAuthor" onchange="myGrooveWriter.refresh_ABC();" type="text"></span>
<span class="sheetMusicTextField"><b>Comment:</b> <input class="sheetMusicInputField" id="tuneComments" onchange="myGrooveWriter.refresh_ABC();" type="text"></span>
<span id='KeyButton'><input type="checkbox" class="hiddenCheckbox" id="showLegend" onclick="myGrooveWriter.refresh_ABC();"><label id="LegendLabel" for="showLegend"><i class="fa fa-key"></i></label></span>
</div>
<div id="musicalInput" class="fullWidthEle edit-block">
<div id="measureContainer">
<script type="text/javascript">
var genHTML = "";
var cur_measure;
for (cur_measure = 1; cur_measure <= myGrooveWriter.numberOfMeasures(); cur_measure++) {
genHTML += myGrooveWriter.HTMLforStaffContainer(cur_measure, (cur_measure - 1) * myGrooveWriter.notesPerMeasure());
}
document.write(genHTML);
//console.log(genHTML);
</script>
</div>
</div>
<div id="bottomButtonRow" class="fullWidthEle">
<span class="pageBottomButton edit-block" id="clearAllNotesButton" onclick="event.preventDefault(); myGrooveWriter.clearAllNotes();"><span class="bottomButtonIcon"><i class="fa fa-trash fa-2x"></i></span><span class="bottomButtonLabel">CLEAR ALL</span></span>
<span class="pageBottomButton edit-block" id="showHideTomsButton" onclick="event.preventDefault(); myGrooveWriter.showHideToms(false, false);"><span class="bottomButtonIcon"><i id="icon-tom1" class="fa fa-circle"></i><i id="icon-tom2" class="fa fa-circle-o"></i><i id="icon-tom3" class="fa fa-circle-o"></i></span><span class="bottomButtonLabel">TOMS</span></span>
<span class=" grooveDB_hidden pageBottomButton" id="stickingsButton" onclick="myGrooveWriter.stickingsAnchorClick();"><span class="bottomButtonLabel">STICKINGS</span></span>
<span class=" grooveDB_hidden pageBottomButton" id="downloadButton" onclick="myGrooveWriter.DownloadAnchorClick();"><span class="bottomButtonIcon"><i class="fa fa-download fa-2x"></i></span><span class="bottomButtonLabel">DOWNLOAD</span></span>
<span class=" grooveDB_hidden pageBottomButton" id="printButton" onclick="myGrooveWriter.printMusic();"><span class="bottomButtonIcon"><i class="fa fa-print fa-2x"></i></span><span class="bottomButtonLabel">PRINT</span></span>
<span class=" grooveDB_hidden pageBottomButton" id="shareSaveButton" onclick="event.preventDefault(); myGrooveWriter.show_FullURLPopup();"><span class="bottomButtonIcon"><i class="fa fa-share fa-2x"></i></span><span class="bottomButtonLabel">SHARE</span></span>
</div>
<div id="midiTextOutput">
</div>
<span id="hiddenDescription">
GrooveScribe allows drummers to easily create grooves, listen, share, print sheet music, and more.
Use the GrooveScribe to create new grooves, figure out the groove to your favorite song,
or write down the groove to your latest tune.
</span>
<!-- GrooveDB output area -->
<div id="GrooveDB_MetaData" class="grooveDB_show" style="display:none;">
<div id="grooveDBInstructions">
This is the text that should be added to the GrooveDB for this groove. <br>
<b>Copy and paste it into the GrooveDB edit window </b>
</div>
<div>
<textarea id="GrooveDB_source" class="fullWidthEle"></textarea>
</div>
</div>
<div id="debugDisplayArea">
<span id="undoStack"></span>
<span id="redoStack"></span>
<span id="URLSearchData"></span>
<!-- ABC notation -->
<A href="" id="showHideABC" onclick="event.preventDefault(); myGrooveWriter.ShowHideABCResults();">Show/Hide ABC Notation</a>
<div id="ABC_Results">
ABC Notation is used for rendering the music. You can see what is being generated below.
You can even edit it. <br>
NOTE: whenever the page is modified, the ABC Notation below will be overwritten automatically. <br>
For more information about ABC Notation go here: <a href="http://abcnotation.com/">http://abcnotation.com/</a>
<p></p>
<textarea id="ABCsource" rows="10" cols="72" ></textarea>
<br>
<button type="button" onclick="myGrooveWriter.displayNewSVG();">Re-render the music</button>
<button type="button" onclick="myGrooveWriter.saveABCtoFile();">Save ABC to file</button>
</div>
<span id="debugOutput"></span>
</div>
<div id="totalPlayTime">
</div>
</div>
</div>
<!-- context menu that will pop up over notes in advaced edit mode or right click -->
<div class="noteContextMenu">
<ul id="metronomeOptionsContextMenu" class="list">
<li class="metronomeOptionsContextMenuItem" id="metronomeOptionsContextMenuSolo" onclick='myGrooveWriter.metronomeOptionsMenuPopupClick("Solo");' title="Just hear the metronome." >Solo</li>
<li class="metronomeOptionsContextMenuItem" id="metronomeOptionsContextMenuSpeedUp" onclick='myGrooveWriter.metronomeOptionsMenuPopupClick("SpeedUp");' title="Increase the tempo automatically" >Auto speed up</li>
<li class="metronomeOptionsContextMenuItem" id="metronomeOptionsContextMenuCountIn" onclick='myGrooveWriter.metronomeOptionsMenuPopupClick("CountIn");' title="One measure of metronome count in at the start" >Count it in</li>
<li class="metronomeOptionsContextMenuItem" id="metronomeOptionsContextMenuOffTheOne" onclick='myGrooveWriter.metronomeOptionsMenuPopupClick("OffTheOne");' title="Click on the e, &, or a">Offset click</li>
<!--
<li id="metronomeOptionsContextMenuDropper" onclick='myGrooveWriter.metronomeOptionsMenuPopupClick("Dropper")' >Beat Dropper</li>
-->
</ul>
</div>
<div class="noteContextMenu">
<ul id="metronomeOptionsOffsetClickContextMenu" class="list">
<li class="metronomeOptionsOffsetClickContextMenuItem menuChecked" id="metronomeOptionsOffsetClickContextMenuOnThe1" onclick='myGrooveWriter.metronomeOptionsMenuOffsetClickPopupClick("1");'>Start on "<b>1</b>"</li>
<li class="metronomeOptionsOffsetClickContextMenuItem" id="metronomeOptionsOffsetClickContextMenuOnTheE" onclick='myGrooveWriter.metronomeOptionsMenuOffsetClickPopupClick("E");'>Start on "<b>E</b>"</li>
<li class="metronomeOptionsOffsetClickContextMenuItem" id="metronomeOptionsOffsetClickContextMenuOnTheAND" onclick='myGrooveWriter.metronomeOptionsMenuOffsetClickPopupClick("AND");'>Start on "<b>&</b>"</li>
<li class="metronomeOptionsOffsetClickContextMenuItem" id="metronomeOptionsOffsetClickContextMenuOnTheA" onclick='myGrooveWriter.metronomeOptionsMenuOffsetClickPopupClick("A");'>Start on "<b>A</b>"</li>
<li class="metronomeOptionsOffsetClickContextMenuItem" id="metronomeOptionsOffsetClickContextMenuOnTheROTATE" onclick='myGrooveWriter.metronomeOptionsMenuOffsetClickPopupClick("ROTATE");'>Rotate through</li>
</ul>
</div>
<div class="noteContextMenu">
<ul id="metronomeOptionsOffsetClickForTripletsContextMenu" class="list">
<li class="metronomeOptionsOffsetClickContextMenuItem menuChecked" id="metronomeOptionsOffsetClickContextMenuOnThe1Triplet" onclick='myGrooveWriter.metronomeOptionsMenuOffsetClickPopupClick("1");'>Start on "<b>1</b>"</li>
<li class="metronomeOptionsOffsetClickContextMenuItem" id="metronomeOptionsOffsetClickContextMenuOnTheTI" onclick='myGrooveWriter.metronomeOptionsMenuOffsetClickPopupClick("TI");'>Start on "<b>&</b>"</li>
<li class="metronomeOptionsOffsetClickContextMenuItem" id="metronomeOptionsOffsetClickContextMenuOnTheTA" onclick='myGrooveWriter.metronomeOptionsMenuOffsetClickPopupClick("TA");'>Start on "<b>A</b>"</li>
<li class="metronomeOptionsOffsetClickContextMenuItem" id="metronomeOptionsOffsetClickContextMenuOnTheROTATE" onclick='myGrooveWriter.metronomeOptionsMenuOffsetClickPopupClick("ROTATE");'>Rotate through</li>
</ul>
</div>
<div class="noteContextMenu">
<ul id="stickingContextMenu" class="list">
<li onclick='myGrooveWriter.notePopupClick("sticking", "off");'>Off</li>
<li onclick='myGrooveWriter.notePopupClick("sticking","right");'><b>R</b>ight</li>
<li onclick='myGrooveWriter.notePopupClick("sticking","left");'><b>L</b>eft</li>
<li onclick='myGrooveWriter.notePopupClick("sticking","both");'><b>R/L</b></li>
<li onclick='myGrooveWriter.notePopupClick("sticking", "count");'>Count</li>
</ul>
</div>
<div class="noteContextMenu">
<ul id="hhContextMenu" class="list">
<li onclick='myGrooveWriter.notePopupClick("hh", "off");'>Off</li>
<li onclick='myGrooveWriter.notePopupClick("hh","normal");'>Hi-hat normal</li>
<li onclick='myGrooveWriter.notePopupClick("hh","open");'>Hi-hat open</li>
<!-- <li onclick='myGrooveWriter.notePopupClick("hh","close");'>Hi-hat closed</li> -->
<li onclick='myGrooveWriter.notePopupClick("hh","accent");'>Hi-hat accent</li>
<li onclick='myGrooveWriter.notePopupClick("hh","crash");'>Crash</li>
<li onclick='myGrooveWriter.notePopupClick("hh","ride");'>Ride</li>
<li onclick='myGrooveWriter.notePopupClick("hh","ride_bell");'>Ride Bell</li>
<li onclick='myGrooveWriter.notePopupClick("hh","cow_bell");'>Cow Bell</li>
<li onclick='myGrooveWriter.notePopupClick("hh","stacker");'>Stacker</li>
<li onclick='myGrooveWriter.notePopupClick("hh","metronome_normal");'>Click</li>
<li onclick='myGrooveWriter.notePopupClick("hh","metronome_accent");'>Click - accent</li>
</ul>
</div>
<div class="noteContextMenu">
<ul id="tom1ContextMenu" class="list">
<li onclick='myGrooveWriter.notePopupClick("tom1", "off");'>Off</li>
<li onclick='myGrooveWriter.notePopupClick("tom1", "normal");'>Tom Normal</li>
</ul>
</div>
<div class="noteContextMenu">
<ul id="tom4ContextMenu" class="list">
<li onclick='myGrooveWriter.notePopupClick("tom4", "off");'>Off</li>
<li onclick='myGrooveWriter.notePopupClick("tom4", "normal");'>Tom Normal</li>
</ul>
</div>
<div class="noteContextMenu">
<ul id="snareContextMenu" class="list">
<li onclick='myGrooveWriter.notePopupClick("snare", "off");'>Off</li>
<li onclick='myGrooveWriter.notePopupClick("snare", "normal");'>Snare Normal</li>
<li onclick='myGrooveWriter.notePopupClick("snare", "accent");'>Snare Accent</li>
<li onclick='myGrooveWriter.notePopupClick("snare", "ghost");'>Ghost Note</li>
<li onclick='myGrooveWriter.notePopupClick("snare", "xstick");'>Cross Stick</li>
<li onclick='myGrooveWriter.notePopupClick("snare", "buzz");'>Buzz Stroke</li>
<li onclick='myGrooveWriter.notePopupClick("snare", "flam");'>Flam</li>
</ul>
</div>
<div class="noteContextMenu">
<ul id="kickContextMenu" class="list">
<li onclick='myGrooveWriter.notePopupClick("kick", "off");'>Off</li>
<li onclick='myGrooveWriter.notePopupClick("kick", "normal");'>Kick Normal</li>
<li onclick='myGrooveWriter.notePopupClick("kick", "splash");'>Hi-hat foot</li>
<li onclick='myGrooveWriter.notePopupClick("kick", "kick_and_splash");'>Kick & Hi-hat foot</li>
</ul>
</div>
<div class="noteContextMenu">
<ul id="stickingsLabelContextMenu" class="list">
<li onclick='myGrooveWriter.noteLabelPopupClick("stickings", "all_off");'>all <b>Off</b></li>
<li onclick='myGrooveWriter.noteLabelPopupClick("stickings", "alternate");'>alternate <b>R</b>/<b>L</b></li>
<li onclick='myGrooveWriter.noteLabelPopupClick("stickings", "all_right");'>all <b>R</b>s</li>
<li onclick='myGrooveWriter.noteLabelPopupClick("stickings", "all_left");'>all <b>L</b>s</li>
<li onclick='myGrooveWriter.noteLabelPopupClick("stickings", "all_count");'><b>C</b>ounts</li>
<li onclick='myGrooveWriter.noteLabelPopupClick("stickings", "cancel");'>cancel</li>
</ul>
</div>
<div class="noteContextMenu">
<ul id="hhLabelContextMenu" class="list">
<li onclick='myGrooveWriter.noteLabelPopupClick("hh", "all_off");'>all Hi-hats <b>Off</b></li>
<li onclick='myGrooveWriter.noteLabelPopupClick("hh", "all_on");'>all Hi-hats <b>On</b></li>
<li onclick='myGrooveWriter.noteLabelPopupClick("hh", "downbeats");'>downbeats</li>
<li onclick='myGrooveWriter.noteLabelPopupClick("hh", "upbeats");'>upbeats</li>
<li id='mute_hh_menu_item' onclick='myGrooveWriter.noteLabelPopupClick("hh", "mute");'>mute HH sound</li>
<li onclick='myGrooveWriter.noteLabelPopupClick("hh", "cancel");'>cancel</li>
</ul>
</div>
<div class="noteContextMenu">
<ul id="tom1LabelContextMenu" class="list">
<li onclick='myGrooveWriter.noteLabelPopupClick("tom1", "all_off");'>all Toms <b>Off</b></li>
<li onclick='myGrooveWriter.noteLabelPopupClick("tom1", "all_on");'>all Toms <b>On</b></li>
<li id='mute_tom1_menu_item' onclick='myGrooveWriter.noteLabelPopupClick("tom1", "mute");'>mute tom sound</li>
<li onclick='myGrooveWriter.noteLabelPopupClick("tom1", "cancel");'>cancel</li>
</ul>
</div>
<div class="noteContextMenu">
<ul id="tom4LabelContextMenu" class="list">
<li onclick='myGrooveWriter.noteLabelPopupClick("tom4", "all_off");'>all Toms <b>Off</b></li>
<li onclick='myGrooveWriter.noteLabelPopupClick("tom4", "all_on");'>all Toms <b>On</b></li>
<li id='mute_tom4_menu_item' onclick='myGrooveWriter.noteLabelPopupClick("tom4", "mute");'>mute tom sound</li>
<li onclick='myGrooveWriter.noteLabelPopupClick("tom4", "cancel");'>cancel</li>
</ul>
</div>
<div class="noteContextMenu">
<ul id="snareLabelContextMenu" class="list">
<li onclick='myGrooveWriter.noteLabelPopupClick("snare", "all_off");'>all Snares <b>Off</b></li>
<li onclick='myGrooveWriter.noteLabelPopupClick("snare", "all_on");'>all <b>Accented</b></li>
<li onclick='myGrooveWriter.noteLabelPopupClick("snare", "all_on_normal");'>all <b>Normal</b></li>
<li onclick='myGrooveWriter.noteLabelPopupClick("snare", "all_on_ghost");'>all <b>Ghosts</b></li>
<li id='mute_snare_menu_item' onclick='myGrooveWriter.noteLabelPopupClick("snare", "mute");'>mute snare sound</li>
<li onclick='myGrooveWriter.noteLabelPopupClick("snare", "cancel");'>cancel</li>
</ul>
</div>
<div class="noteContextMenu">
<ul id="kickLabelContextMenu" class="list">
<li onclick='myGrooveWriter.noteLabelPopupClick("kick", "all_off");'>all Kicks <b>Off</b></li>
<li onclick='myGrooveWriter.noteLabelPopupClick("kick", "all_on");'>all Kicks <b>On</b></li>
<li onclick='myGrooveWriter.noteLabelPopupClick("kick", "hh_foot_nums_on");'>HH foot #'s <b>On</b></li>
<li onclick='myGrooveWriter.noteLabelPopupClick("kick", "hh_foot_ands_on");'>HH foot &'s <b>On</b></li>
<li id='mute_kick_menu_item' onclick='myGrooveWriter.noteLabelPopupClick("kick", "mute");'>mute kick sound</li>
<li onclick='myGrooveWriter.noteLabelPopupClick("kick", "cancel");'>cancel</li>
</ul>
</div>
<div class="noteContextMenu">
<ul id="permutationContextMenu" class="list">
<li onclick='myGrooveWriter.permutationPopupClick("none");'><b>None</b></li>
<li onclick='myGrooveWriter.permutationPopupClick("kick_16ths");'><b>Kick</b> Permutation</li>
<li onclick='myGrooveWriter.permutationPopupClick("snare_16ths");'><b>Snare</b> Permutation</li>
</ul>
</div>
<div class="noteContextMenu">
<ul id="helpContextMenu" class="list">
<li onclick='myGrooveWriter.helpMenuPopupClick("undo");'>Undo (Ctrl-Z)</li>
<li onclick='myGrooveWriter.helpMenuPopupClick("redo");'>Redo (Ctrl-Y)</li>
<li onclick='myGrooveWriter.helpMenuPopupClick("help");'>Help</li>
<li onclick='myGrooveWriter.helpMenuPopupClick("about");'>About</li>
</ul>
</div>
<div class="noteContextMenu">
<ul id="stickingsContextMenu" class="list" style="width: 200px;">
<li onclick='myGrooveWriter.stickingsShowHideToggle();'><b>Show or Hide stickings</b></li>
<li onclick='myGrooveWriter.stickingsReverseRL();'><b>Reverse stickings R/L</b></li>
</ul>
</div>
<div class="noteContextMenu">
<ul id="downloadContextMenu" class="list" style="width: 200px;">
<li onclick='myGrooveWriter.SVGSaveAs();'><b>Download SVG Images</b></li>
<li onclick='myGrooveWriter.PNGSaveAs();'><b>Download PNG Images</b></li>
<li onclick='myGrooveWriter.MIDISaveAs();'><b>Download MIDI file</b></li>
</ul>
</div>
<div id="grooveListWrapper">
<script>
document.write(grooves.getGroovesAsHTML());
</script>
</div>
<!-- dialog for the TIME label, hidden by default -->
<div id="timeSigPopup">
<div id="timeSigPopupTitle">Choose a Time Signature</div>
<div id="timeSigPopupOptions">
<select id="timeSigPopupTimeSigTop">
<option value="2">2</option>
<option value="3">3</option>
<option selected 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>
<b id="timeSigPopupSlash">/</b>
<select id="timeSigPopupTimeSigBottom">
<option selected value="4">4</option>
<option value="8">8</option>
<option value="16">16</option>
</select>
</div>
<div id="timeSigPopupButtons">
<button id="timeSigPopupCancel" onclick="myGrooveWriter.timeSigPopupClose('cancel');">Cancel</button>
<button id="timeSigPopupOK" onclick="myGrooveWriter.timeSigPopupClose('ok');">Done</button>
</div>
</div>
<!-- this is used by the share/save button, and is hidden by default -->
<div id="fullURLPopup">
<span id="fullURLPopupCloseButton" onclick="myGrooveWriter.close_FullURLPopup();"><i class="fa fa-lg fa-times-circle"></i></span>
<div id="fullURLPopupTitle">Share Your Groove</div>
<div id="fullURLPopupSubTitle">Use this URL to share or save this groove</div>
<div id="fullURLPopupSubSubTitle">(You can also bookmark this page)</div>
<div id="fullURLPopupCheckboxes">
<span><label id="shortURLLabel" class="fullURLPopupCheckboxLabel"><input type="checkbox" id="shortenerCheckbox" onchange="myGrooveWriter.shortenerCheckboxChanged();">Short URL</label></span>
<span><label id="embedCodeLabel" class="fullURLPopupCheckboxLabel"><input type="checkbox" id="embedCodeCheckbox" onchange="myGrooveWriter.embedCodeCheckboxChanged();">Embed Code</label></span>
</div>
<div id="fullURLPopupTextFieldContainer"><input type="text" id="fullURLPopupTextField"></div>
<br>
<div id="shareButtonContainer">
<button id="fullURLPopupCopyButton" onclick="myGrooveWriter.copyShareURLToClipboard();"> <i class="fa fa-copy"></i> COPY </button>
<share-button id="shareButton"></share-button>
</div>
</div>
<!-- this is used by the metronome auto speed up option menu, and is hidden by default -->
<div id="metronomeAutoSpeedupConfiguration">
<div id="metronomeAutoSpeedupOutputText">
Increase <span id="metronomeAutoSpeedupTempoIncreaseAmountOutput">5</span> bpm in
<span id="metronomeAutoSpeedupTempoIncreaseIntervalOutput">2</span> min
</div>
<div id="metronomeAutoSpeedupConfigurationKeepIncreasing">
<input type="checkbox" checked id="metronomeAutoSpeedUpKeepGoingForever"><label for="metronomeAutoSpeedUpKeepGoingForever">Keep increasing after the first interval</label>
</div>
<div id="metronomeAutoSpeedupConfigurationSliders">
<div id="metronomeAutoSpeedupConfigurationAmountLable">Amount in BPM</div>
<input type=range min=1 max=100 value=5 class="metronomeAutoSpeedUpRange" id="metronomeAutoSpeedupTempoIncreaseAmount" oninput="myGrooveWriter.updateRangeLabel(event, 'metronomeAutoSpeedupTempoIncreaseAmountOutput');">
<div id="metronomeAutoSpeedupConfigurationIntervalLable">Interval in Minutes</div>
<input type=range min=1 max=20 value=2 class="metronomeAutoSpeedUpRange" id="metronomeAutoSpeedupTempoIncreaseInterval" step="1" oninput="myGrooveWriter.updateRangeLabel(event, 'metronomeAutoSpeedupTempoIncreaseIntervalOutput');">
</div>
<div id="metronomeAutoSpeedupCloseButtonDiv">
<button id="metronomeAutoSpeedupConfigurationCloseButton" onclick="myGrooveWriter.close_MetronomeAutoSpeedupConfiguration('ok');">Done</button>
</div>
</div>
<script>
// set up the page after it has fully loaded
window.onload = function () { 'use strict';
myGrooveWriter.runsOnPageLoad(); // Initialize the notes
};
</script>
</div>
</body>
</html>