-
Notifications
You must be signed in to change notification settings - Fork 63
/
grooveDBTest - Single.html
43 lines (34 loc) · 1.45 KB
/
grooveDBTest - Single.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
<!-- A widget for turning a multipart drum tab in to pretty printed sheet music with midi playback
-->
<title>GrooveDB Display Test</title>
<!-- Other peoples JS libraries -->
<!-- midi.js package for sound -->
<ssscript src="https://b125c4f8bf7d89726feec9ab8202d31e0c8d14d8.googledrive.com/host/0B2wxVWzVoWGYfnB5b3VTekxyYUowVjZ5YVE3UllLaVk5dVd4TzF4Q2ZaUXVsazhNSTdRM1E/./js/groove_display.js" type="text/javascript"></script>
<script src="./js/groove_display.js" type="text/javascript"></script>
<p>16th note Triplets in 4/4</p>
<script src="./js/groove_display.js" type="text/javascript"></script>
<script>
function generateGUID() {
var d = new Date().getTime();
var guid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = (d + Math.random()*16)%16 | 0;
d = Math.floor(d/16);
return (c=='x' ? r : (r&0x3|0x8)).toString(16);
});
return guid;
};
var TabIn = {};
var TabIn = {};
TabIn.tempo = 70;
TabIn.div = parseInt('24', 10);
TabIn.notesPerTabMeasure = parseInt('12', 10);
TabIn.measures = 2;
TabIn.timeSignature = "2/4";
TabIn.hihatTab = 'x-xx-xx-xx-xx-xx-xx-xx-x';
TabIn.snareAccentTab = '------O-----------O-----';
TabIn.snareOtherTab = '-g--g--g--g--g--g--g--g-';
TabIn.kickTab = '------------------------';
TabIn.footOtherTab = '------------------------';
// put it on the page
GrooveDisplay.GrooveDBFormatPutGrooveOnPage(TabIn);
</script>