forked from montulli/GrooveScribe
-
Notifications
You must be signed in to change notification settings - Fork 2
/
InterestingGrooves.html
71 lines (61 loc) · 5.81 KB
/
InterestingGrooves.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
<script>
var Basic_Grooves = {
'8th Note Rock': './?Div=8&measures=2&showMeasures=1&H=|+xxxxxxo|+xxxxxxo|&S=|--o---o-|--o---o-|&K=|o---oo--|o---oo--|',
'16th Note Rock': './?Div=16&measures=2&showMeasures=1&H=|xxxxxxxxxxxxxxxx|xxxxxxxxxxxxxxxx|&S=|----o-------o---|----o-------o---|&K=|o-----o---o--o--|o-----o---o--o--|',
'Upbeats': './?Div=8&Title=Upbeats&measures=2&showMeasures=1&H=|-x-x-x-x|-x-x-x-x|&S=|--o---o-|--o---o-|&K=|o---o---|o---o---|',
'Syncopated Hi-hat #1': './?Div=16&Title=Syncopated%20hi-hat&measures=2&showMeasures=1&H=|xxx-xxx-xxx-xxx-|xxx-xxx-xxx-xxx-|&S=|----o-------o---|----o-------o---|&K=|o-------o-------|o-------o-------|',
'Syncopated Hi-hat #2': './?Div=16&Title=Syncopated%20hi-hat&measures=2&showMeasures=1&H=|x-xxx-xxx-xxx-xx|x-xxx-xxx-xxx-xx|&S=|----o-------o---|----o-------o---|&K=|o-------o-------|o-------o-------|',
'Basic HipHop': './?Div=8&Title=Basic%20Hip%20Hop&measures=2&showMeasures=1&Tempo=120&H=|xxxxxxxx|xxxxxxxx|&S=|--o---o-|--o---o-|&K=|o--o----|o--o----|',
'Reggae One Drop': './?Div=4&Title=Reggae%20One%20Drop&Tempo=100&Swing=10&Measures=2&showMeasures=1&H=|xxxx|xxxx|&S=|--x-|--x-|&K=|--o-|--o-|',
'Metal Groove': './?Div=16&Title=Metal%20Groove&measures=2&showMeasures=2&H=|x-x-x-x-x-x-x-x-|x-x-x-x-x-x-x-x-|&S=|o--o--o--o--o--o|--o--o--o--o--o-|&K=|oooooooooooooooo|oooooooooooooooo|',
'Funk': './?Div=16&Title=Funk&measures=2&showMeasures=1&H=|X-x-X-x-X-x-X-x-|X-x-X-x-X-x-X-x-|&S=|-----g-o-o--x--o|-----g-o-o--x--o|&K=|o-o-------o--o--|o-o-------o--o--|',
'Bo Diddley': './?Div=16&Title=Bo%20Diddley%20beat&measures=2&showMeasures=1&H=|----------------|xxxxxxxxxxxxxxxx|&S=|o--oo-o---o-o---|----o-------o---|&K=|----------------|o-------o-------|',
'Bo Diddley Accents': './?Div=16&Title=Bo%20Diddley%20Accent&measures=2&showMeasures=1&H=|----------------|xxxxxxxxxxxxxxxx|&S=|OooOOoOoooOoOooo|----o-------o---|&K=|----------------|o-------o-------|',
'Train Beat': './?Div=16&Title=Train%20Beat&Tempo=95&Measures=2&showMeasures=1&H=|----------------|----------------|&S=|ggOgggOgggOggOOg|OOOOOOOOOOOOOOOO|&K=|o-x-o-x-o-x-o-x-|o-------o-------|',
'Funk': './?Div=16&Title=Funk&measures=2&showMeasures=1&H=|X-x-X-x-X-x-X-x-|X-x-X-x-X-x-X-x-|&S=|-----g-o-o--x--o|-----g-o-o--x--o|&K=|o-o-------o--o--|o-o-------o--o--|'
};
var Triplet_Grooves = {
'Half Time Shuffle in 8th notes': './?Div=12&Title=Half%20Time%20Shuffle&measures=2&showMeasures=1&H=|x-xx-xx-xx-x|x-xx-xx-xx-x|&S=|-g--g-Og--g-|-g--g-Og--g-|&K=|------------|------------|',
'Half Time Shuffle in 16th notes': './?Div=24&Tempo=85&Measures=2&showMeasures=1&H=|x-xx-xx-xx-xx-xx-xx-xx-x|xxxxxxxxxxxxxxxxxxxxxxxx|&S=|-g--g-Og--g--g--g-Og--g-|------O-----------O-----|&K=|------------------------|o-----------o-----------|',
'Purdie Shuffle': './?Div=12&Title=Purdie%20Shuffle&measures=2&showMeasures=1&H=|x-xx-xx-xx-x|x-xx-xx-xx-x|&S=|-g--g-Og--g-|-g--g-Og--g-|&K=|o----o-----o|o----o-----o|',
'Bonham Shuffle': './?Div=12&Title=Fool%20in%20The%20Rain%20Shuffle&Author=John%20Bonham&Tempo=105&Measures=2&showMeasures=1&H=|x-o+-xx-xx-x|x-xx-xx-xx-x|&S=|-g--g-O---g-|-g--g-Og--g-|&K=|o-o--o-----o|------------|',
'Rosanna Shuffle': './?Div=24&Title=Rosanna%20Shuffle&Author=Jeff%20Pocaro&Tempo=85&Measures=2&showMeasures=1&H=|x-xx-xx-xx-xx-xx-xx-xx-x|xxxxxxxxxxxxxxxxxxxxxxxx|&S=|-g--g-Og--g--g--g-Og--g-|------O-----------O-----|&K=|o----o---o----o---o----o|o-----------o-----------|',
};
var Jazz = {
'Jazz Ride': './?Div=8&Title=Jazz%20Ride%20Pattern&Swing=25&measures=2&showMeasures=1&H=|r-rrr-rr|x-xxx-xx|&S=|--------|--o---o-|&K=|--x---x-|o---o---|',
};
var Latin = {
'Bossa Nova': './?Div=8&Title=Bossa%20Nova&measures=2&showMeasures=2&H=|xxxxxxxx|xxxxxxxx|&S=|--x--x--|x--x--x-|&K=|o-xoo-xo|o-xoo-xo|',
'Bossa Nova 2': './?Div=8&Title=Bossa%20Nova&measures=2&showMeasures=2&H=|xxxxxxxx|xxxxxxxx|&S=|---x--x-|--x--x--|&K=|o--oo--o|o--oo--o|',
'Samba Feet': './?Div=16&Title=Basic%20Samba%20Pattern&measures=2&showMeasures=1&H=|x-x-x-x-x-x-x-x-|x-x-x-x-x-x-x-x-|&S=|----------------|----------------|&K=|o-xoo-xoo-xoo-xo|o-xoo-xoo-xoo-xo| ',
'Samba Slow': './?Div=16&Title=Samba&measures=2&showMeasures=1&H=|xxXxxxXxxxXxxxXx|xxXxxxXxxxXxxxXx|&S=|o-o--o-o-o-o-oo-|o-o--o-o-o-o-oo-|&K=|o--oo--oo--oo--o|o--oo--oo--oo--o|',
'Samba Fast': './?Div=16&Title=Samba&measures=2&showMeasures=1&H=|x-xxx-xxx-xxx-xx|x-xxx-xxx-xxx-xx|&S=|--o--o---o--o-o-|--o--o---o--o-o-|&K=|o-xoo-xoo-xoo-xo|o-xoo-xoo-xoo-xo|',
'Tumbao': './?Div=16&Title=Tumbao&measures=2&showMeasures=1&H=|x-xxx-xxx-xxx-xx|x-xxx-xxx-xxx-xx|&S=|----------------|----------------|&K=|o-xo--X-o-xo--X-|o-xo--X-o-xo--X-|',
'Baiao': './?Div=16&Title=baiao&measures=2&showMeasures=1&H=|xxX-xxX-xxX-xxX-|xxX-xxX-xxX-xxX-|&S=|------o-------o-|------o-------o-|&K=|o--o----o--o---o|o--o----o--o---o|',
'Songo': './?Div=16&Title=Songo&measures=2&showMeasures=1&H=|x---x---x---x---|x---x---x---x---|&S=|--o--o-o-oo--o-o|--o--o-o-oo--o-o|&K=|---o--o----o--o-|---o--o----o--o-|',
'3/2 Rumba Clave': './?Div=8&Title=3/2%20Rumba%20Clave&measures=2&showMeasures=2&H=|X-x-X-x-|X-x-X-x-|&S=|-gg--g-o|--o--g-o|&K=|--------|--------|',
};
var FullArray = {"4/4 grooves": Basic_Grooves,
"Triplet grooves": Triplet_Grooves,
"Jazz grooves": Jazz,
"Latin grooves": Latin,
};
function isArray(myArray) {
var str = myArray.constructor.toString();
return (str.indexOf("Object") > -1);
}
function printArrayAsList(arrayToPrint) {
document.write("<ul>\n");
for(var key in arrayToPrint) {
if(isArray(arrayToPrint[key])) {
document.write("<li>" + key + "\n");
printArrayAsList(arrayToPrint[key]);
} else {
document.write('<li><A HREF="' + arrayToPrint[key] + '">' + key + '</a>\n');
}
}
document.write("</ul>\n");
}
document.write("<h2>Common Grooves</h2>\n");
printArrayAsList(FullArray);
</script>