-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathChordSense.html
192 lines (174 loc) · 9.19 KB
/
ChordSense.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
<!DOCTYPE html>
<html xmlns = "http://www.w3.org/1999/xhtml">
<script src = 'vendor/webmidi.min.js'></script>
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<link href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet" />
<!-- MultiSelect CSS & JS library -->
<link href="vendor/jquery.multiselect.css" rel="stylesheet" />
<script src="vendor/jquery.multiselect.js"></script>
<script src="vendor/vexflow-min.js"></script>
<!--script src = "vendor/jquery-3.4.1.js"></script-->
<script type = "text/javascript" src = "vendor/jquery-3.4.1.js"></script>
<link type = "text/css" rel = "stylesheet" href = "MidiApp2.css">
<link rel="stylesheet" href="vendor/notationmovement.css" type="text/css">
<link rel="stylesheet" href="vendor/preloader.css" type="text/css">
<script>
function myFunction() {
if (location.protocol != 'https:')
{
location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
}
}
</script>
<!--script src = "timbre.js"></script-->
<head>
<audio id = "sound-A2" data-src = "samplestwo/A2.mp3"></audio>
<audio id = "sound-Bb2" data-src = "samplestwo/Bb2.mp3"></audio>
<audio id = "sound-B2" data-src = "samplestwo/B2.mp3"></audio>
<audio id = "sound-Ab3" data-src = "samplestwo/Ab3.mp3"></audio>
<audio id = "sound-A3" data-src = "samplestwo/A3.mp3"></audio>
<audio id = "sound-Bb3" data-src = "samplestwo/Bb3.mp3"></audio>
<audio id = "sound-B3" data-src = "samplestwo/B3.mp3"></audio>
<audio id = "sound-C3" data-src = "samplestwo/C3.mp3"></audio>
<audio id = "sound-Db3" data-src = "samplestwo/Db3.mp3"></audio>
<audio id = "sound-D3" data-src = "samplestwo/D3.mp3"></audio>
<audio id = "sound-Eb3" data-src = "samplestwo/Eb3.mp3"></audio>
<audio id = "sound-E3" data-src = "samplestwo/E3.mp3"></audio>
<audio id = "sound-F3" data-src = "samplestwo/F3.mp3"></audio>
<audio id = "sound-Gb3" data-src = "samplestwo/Gb3.mp3"></audio>
<audio id = "sound-G3" data-src = "samplestwo/G3.mp3"></audio>
<audio id = "sound-Ab4" data-src = "samplestwo/Ab4.mp3"></audio>
<audio id = "sound-A4" data-src = "samplestwo/A4.mp3"></audio>
<audio id = "sound-Bb4" data-src = "samplestwo/Bb4.mp3"></audio>
<audio id = "sound-B4" data-src = "samplestwo/B4.mp3"></audio>
<audio id = "sound-C4" data-src = "samplestwo/C4.mp3"></audio>
<audio id = "sound-Db4" data-src = "samplestwo/Db4.mp3"></audio>
<audio id = "sound-D4" data-src = "samplestwo/D4.mp3"></audio>
<audio id = "sound-Eb4" data-src = "samplestwo/Eb4.mp3"></audio>
<audio id = "sound-E4" data-src = "samplestwo/E4.mp3"></audio>
<audio id = "sound-F4" data-src = "samplestwo/F4.mp3"></audio>
<audio id = "sound-Gb4" data-src = "samplestwo/Gb4.mp3"></audio>
<audio id = "sound-G4" data-src = "samplestwo/G4.mp3"></audio>
<audio id = "sound-C5" data-src = "samplestwo/C5.mp3"></audio>
<audio id = "sound-Db5" data-src = "samplestwo/5_Db4_4.mp3"></audio>
<audio id = "sound-D5" data-src = "samplestwo/5_D4_3.mp3"></audio>
<audio id = "sound-Eb5" data-src = "samplestwo/5_Eb4_3.mp3"></audio>
<audio id = "sound-E5" data-src = "samplestwo/5_E4_3.mp3"></audio>
<audio id = "sound-F5" data-src = "samplestwo/5_F4_3.mp3"></audio>
<audio id = "sound-Gb5" data-src = "samplestwo/5_Gb4_3.mp3"></audio>
<audio id = "sound-G5" data-src = "samplestwo/5_G4_2.mp3"></audio>
<audio id = "sound-Ab5" data-src = "samplestwo/5_Ab4_2.mp3"></audio>
<audio id = "sound-A5" data-src = "samplestwo/5_A4_2.mp3"></audio>
<audio id = "sound-Bb5" data-src = "samplestwo/5_Bb4_2.mp3"></audio>
<audio id = "sound-B5" data-src = "samplestwo/5_B4_2.mp3"></audio>
<audio id = "sound-C6" data-src = "samplestwo/5_C5_2.mp3"></audio>
<!--LINK JQUERY-->
<!--PERSONAL SCRIPT JavaScript-->
</head>
<body data-step="0">
<div id="app-preloader">
<label for="preload-progress-bar">Downloading sounds and image files: <span class="progress-percentage"></span></label>
<progress id="preload-progress-bar"></progress>
</div>
<div id="dropdown"><p>
<select name="basic[]" multiple="multiple" class="3col active">
<option value="justLearnNotes" selected id = "jln">Just Learn Notes</option>
<option value="easyFifths" id = "ez5" onclick = "resetChord()">Easy Fifths</option>
<option value="easyMajor" id = "ezmaj">Easy Major</option>
<option value="easyMinor" id = "ezm">Easy Minor</option>
<option value="fifths" id = "just5">Fifths</option>
<option value="major" id = "reg">Major</option>
<option value="minor" id = "regm">Minor</option>
<option value="sus2" id = "idsus2" >Sus2</option>
<option value="sus" id = "idsus">Sus</option>
<option value="minorSeventh" id = "m7">Minor Seventh</option>
<option value="majorSeventh" id = "maj7">Major Seventh</option>
<option value="dominantSeventh" id = "d7">Dominant Seventh</option>
<option value="minorNinth" id = "m9">Minor Ninth</option>
<option value="majorNinth" id = "maj9">Major Ninth</option>
<option value="dominantNinth" id = "d9">Dominant Ninth</option>
<option value="addNinth" id = "add9">Add Ninth</option>
<option value="romC" id = "romanc">Roman Numerals in C</option>
<option value="romA" id = "romana">Roman Numerals in A</option>
<option value="sChords" id = "slashChords">Require specific inversions as "Slash Chords"</option>
<option value="dubB" id = "doubleBass">Look for two additional root notes in the Bass</option>
</select>
</p></div>
<div id ="octaveButtonLinks" class = "chickens"><p><p><button type="button" id = "octaveUp"> octave ↑</button></p></div>
<div id ="octaveButtonLinksTwo" class = "chickens"><p><p><button type="button" id = "octaveDown">octave ↓</button></p></div>
<div id ="octaveNumBox" class = "chickens" style="background: white">Octave 3</div>
<div id ="sheetButtonLink"><p><p><button type="button" id = "sheetButton">Change To Words</button></p></div>
<div id ="chordSenseLink"><p><p><button type="button" id = "chordLink" onclick="myFunction()">Practice Scales</button></p></div>
<script>
function myFunction() {
window.location.replace("melodies.html");
}
</script>
<script>
$(function () {
$('select[multiple].active.3col').multiselect({
columns: 1,
placeholder: 'Select Chords',
search: true,
searchOptions: {
'default': 'Search Chords'
},
selectAll: true
});
});
</script>
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<defs>
<symbol id="note" viewBox="0 0 121 174">
<path d="M72.517 141.958c.741 13.022-12.003 26.182-30.168 30.376-19.642 4.534-38.183-3.132-41.414-17.123-3.23-13.992 10.075-29.01 29.716-33.545 7.576-1.749 14.988-1.683 21.42-.139L52 115.424V0c11.37 11.855 20.084 19.909 26.142 24.16 9.087 6.377 21.997 14.68 30.63 25.999 8.633 11.318 12.207 22.805 11.035 33.937-1.172 11.132-3.8 19.104-8.8 26.987-3.333 5.256-5.444 8.71-6.332 10.36 2.344-11.277 3.06-20.35 2.15-27.22-1.364-10.304-3.914-15.369-12.356-21.72-5.628-4.234-12.885-7.564-21.77-9.991v79.493l-.182-.047z" fill-rule="evenodd"/>
</symbol>
</defs>
</svg>
<div id="screen-wrapper">
<div id="screens">
<div class="screen step0"></div>
<div class="screen step1">
<div class="lock-input" id="lockinput">
<div class="note"><svg><use xlink:href="#note"></use></svg></div>
<div class="note"><svg><use xlink:href="#note"></use></svg></div>
<div class="note"><svg><use xlink:href="#note"></use></svg></div>
<div class="note"><svg><use xlink:href="#note"></use></svg></div>
<div class="note"><svg><use xlink:href="#note"></use></svg></div>
<div class="note"><svg><use xlink:href="#note"></use></svg></div>
<div class="note"><svg><use xlink:href="#note"></use></svg></div>
<div class="note"><svg><use xlink:href="#note"></use></svg></div>
<div class="note"><svg><use xlink:href="#note"></use></svg></div>
</div>
<p class="hint">Hint: "Amazing Grace" in F</p>
</div>
<div class="screen step2">
<div class="row justify-content-start chickens" >
<br>
<div id="staff-box" style="background:white"></div>
</div>
<div class="lock-input">
<div class="note"><svg><use xlink:href="#note"></use></svg></div>
<div class="note"><svg><use xlink:href="#note"></use></svg></div>
<div class="note"><svg><use xlink:href="#note"></use></svg></div>
<div class="note"><svg><use xlink:href="#note"></use></svg></div>
<div class="note"><svg><use xlink:href="#note"></use></svg></div>
<div class="note"><svg><use xlink:href="#note"></use></svg></div>
</div>
<p id = "warning" style="color:#f0fc03;"></p>
<p class="hint" id = "score" >Hint: C7 in root position</p>
<p class = "keyboardImg"><img src = "Blank Keyboard.jpeg" id = "keyboardImg2"></img></p>
<p class="setpoint" id = "sp"> </p>
</div>
<div class="screen step3">
<p>You win!!</p>
</div>
</div>
</div>
<div id="countdown">01:00</div>
<script src = "MidiApp.js"></script>
<script src="helper.js"></script>
<script src="vendor/preloader.js"></script>
</body>