-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.php
More file actions
285 lines (285 loc) · 19.3 KB
/
Copy pathindex.php
File metadata and controls
285 lines (285 loc) · 19.3 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
<!doctype html>
<html lang="en">
<head>
<?php require 'components/head.php'; ?>
<script>
const PAGE_NAME = "homepage";
</script>
<title>Practice chords, scales, or arpeggios with an endless stream of randomized chords | Flash Chord</title>
</head>
<body>
<?php require 'components/header.php'; ?>
<div class="container">
<div class="alert alert-primary" role="alert">
<i class="bi bi-exclamation-square-fill mr-1 text-primary"></i>Check out the <i class="bi bi-patch-exclamation-fill mr-1 text-primary"></i><a href="/news">News</a> page for updates!
</div>
<p class="lead text-muted">Practice chords, scales, or arpeggios with an endless stream of randomized chords!</p>
</div>
<div class="container">
<h2 id="chord_name">Chord</h2>
<div id="next_chord">
<h3 class="text-center">Up next...</h3>
<h2 id="next_chord_name">Next Chord</h2>
</div>
<div class="btn-group-lg text-center mt-4" role="group" aria-label="Basic example">
<button type="button" class="btn btn-success" id="start">Start</button>
<button type="button" class="btn btn-danger" id="stop">Stop</button>
</div>
<div class="text-center mt-3">
<div id="visual_metronome">
<span id="beat1" class="text-primary">•</span>
<span id="beat2" class="text-secondary">•</span>
<span id="beat3" class="text-secondary">•</span>
<span id="beat4" class="text-secondary">•</span>
<span id="beat5" class="text-secondary">•</span>
<span id="beat6" class="text-secondary">•</span>
</div>
</div>
<div class="text-center">
<div id="bars_progress" class="mx-auto"></div>
<div id="bars_progress_text"><span id="current_bar_text">1</span> of <span id="bar_count_text">1</span></div>
</div>
<div class="text-center mt-4">
<div class="d-inline-block text-left">
<input type="checkbox" name="metronome_audio" checked />
<label for="metronome_audio">Metronome audio</label>
<br />
<input type="checkbox" name="metronome_visual" checked />
<label for="metronome_visual">Metronome visuals</label>
</div>
</div>
<div class="text-center alert alert-danger mt-2" role="alert">
<a href="/donate">♥ Click here if you love Flash Chord and want to help support it! ♥</a>
</div>
</div>
<div class="container mt-3 pb-5">
<div class="row bg-light mb-2 text-center">
<div class="col border-top border-bottom">
<h4 class="text-secondary mt-1 mb-2">Settings</h4>
</div>
</div>
<div class="row mt-3">
<div class="col-md">
<div class="mb-5">
<h4>Tempo</h4>
<div id="tempo"></div>
<label for="bpm">Beats per minute:</label>
<input type="text" id="bpm" readonly style="border:0; font-weight:bold;">
</div>
<div class="mb-5">
<h4>Bars per chord</h4>
<div id="bars"></div>
<label for="bars_per_chord">Bars:</label>
<input type="text" id="bars_per_chord" readonly style="border:0; font-weight:bold;">
</div>
<div class="mb-5">
<h4 class="mt-5">Time Signature</h4>
<input type="radio" id="time_44" name="time_signature" value="time_44" checked>
<label for="time_44">4/4</label><br>
<input type="radio" id="time_34" name="time_signature" value="time_34">
<label for="time_34">3/4</label><br>
<input type="radio" id="time_24" name="time_signature" value="time_24">
<label for="time_24">2/4</label><br>
<input type="radio" id="time_68" name="time_signature" value="time_68">
<label for="time_68">6/8</label><br>
</div>
</div>
<div class="col-md">
<div class="mb-5">
<h4>Key</h4>
<label for="keys">Select a key:</label>
<select id="keys" class="custom-select w-50">
<option value="any">Any (random key)</option>
</select>
<p class="small mt-1"><em>Currently, specifying a key will override the Difficulty settings below.</em></p>
</div>
<h4 class="mt-5">Difficulty</h4>
<div class="row">
<div class="col">
<button type="button" id="beginner_preset" class="btn btn-success chord-type-preset btn-sm mb-3">Beginner</button>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_beginner chord-type-selection" id="chord_type_major" name="chord_type_major" value="M" checked />
<label for="chord_type_major" class="custom-control-label">Major</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_beginner chord-type-selection" id="chord_type_minor" name="chord_type_minor" value="m" checked />
<label for="chord_type_minor" class="custom-control-label">minor</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_beginner chord-type-selection" id="chord_type_7" name="chord_type_7" value="7" checked />
<label for="chord_type_7" class="custom-control-label">7</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_beginner chord-type-selection" id="chord_type_m7" name="chord_type_m7" value="m7" checked />
<label for="chord_type_m7" class="custom-control-label">m7</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_beginner chord-type-selection" id="chord_type_dim" name="chord_type_dim" value="°" checked />
<label for="chord_type_dim" class="custom-control-label">° (dim)</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_beginner chord-type-selection" id="chord_type_aug" name="chord_type_aug" value="+" checked />
<label for="chord_type_aug" class="custom-control-label">+ (aug)</label>
</div>
</div>
<div class="col">
<button type="button" id="intermediate_preset" class="btn btn-outline-warning chord-type-preset btn-sm mb-3">Intermediate</button>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_intermediate chord-type-selection" id="chord_type_maj7" name="chord_type_maj7" value="maj7" />
<label for="chord_type_maj7" class="custom-control-label">Maj7</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_intermediate chord-type-selection" id="chord_type_maj9" name="chord_type_maj9" value="maj9" />
<label for="chord_type_maj9" class="custom-control-label">Maj9</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_intermediate chord-type-selection" id="chord_type_6" name="chord_type_6" value="6" />
<label for="chord_type_6" class="custom-control-label">6</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_intermediate chord-type-selection" id="chord_type_m6" name="chord_type_m6" value="m6" />
<label for="chord_type_m6" class="custom-control-label">m6</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_intermediate chord-type-selection" id="chord_type_m6" name="chord_type_m6" value="m6" />
<label for="chord_type_m6" class="custom-control-label">m6</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_intermediate chord-type-selection" id="chord_type_sus2" name="chord_type_sus2" value="sus2" />
<label for="chord_type_sus2" class="custom-control-label">sus2</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_intermediate chord-type-selection" id="chord_type_sus4" name="chord_type_sus4" value="sus4" />
<label for="chord_type_sus4" class="custom-control-label">sus4</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_intermediate chord-type-selection" id="chord_type_9" name="chord_type_9" value="9" />
<label for="chord_type_9" class="custom-control-label">9</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_intermediate chord-type-selection" id="chord_type_m9" name="chord_type_m9" value="m9" />
<label for="chord_type_m9" class="custom-control-label">m9</label>
</div>
</div>
<div class="col">
<button type="button" id="advanced_preset" class="btn btn-outline-danger chord-type-preset btn-sm mb-3">Advanced</button>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_advanced chord-type-selection" id="chord_type_7alt" name="chord_type_7alt" value="7alt" />
<label for="chord_type_7alt" class="custom-control-label">7alt (7♯5)</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_advanced chord-type-selection" id="chord_type_dim7" name="chord_type_dim7" value="°7" />
<label for="chord_type_dim7" class="custom-control-label">°7 (dim 7)</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_advanced chord-type-selection" id="chord_type_m7b5" name="chord_type_m7b5" value="m7♭5" />
<label for="chord_type_m7b5" class="custom-control-label">m7♭5 (ø, half-dim)</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_advanced chord-type-selection" id="chord_type_11" name="chord_type_11" value="11" />
<label for="chord_type_11" class="custom-control-label">11</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_advanced chord-type-selection" id="chord_type_m11" name="chord_type_m11" value="m11" />
<label for="chord_type_m11" class="custom-control-label">m11</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_advanced chord-type-selection" id="chord_type_13" name="chord_type_13" value="13" />
<label for="chord_type_13" class="custom-control-label">13</label>
</div>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input difficulty_advanced chord-type-selection" id="chord_type_69" name="chord_type_69" value="6/9" />
<label for="chord_type_69" class="custom-control-label">6/9</label>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="custom-control custom-checkbox mt-3">
<input type="checkbox" class="custom-control-input" id="extensions" name="extensions" />
<label for="extensions" class="custom-control-label">Add extensions <small>(♯5, ♭5, ♯9, ♭9, ♯11, ♭13)</small></label>
</div>
<div class="custom-control custom-checkbox mt-3">
<input type="checkbox" class="custom-control-input" id="rare_enharmonics" name="rare_enharmonics" />
<label for="rare_enharmonics" class="custom-control-label">Enable rare enharmonic chords <small>(C♭, B♯, F♭, E♯)</small></label>
</div>
<div class="custom-control custom-checkbox mt-3">
<input type="checkbox" class="custom-control-input" id="slash_chords" name="slash_chords" />
<label for="slash_chords" class="custom-control-label">Enable inversions via slash chords <small>(C/E, Am/C, G/B, D/F#, etc.)</small></label>
</div>
<div class="custom-control custom-checkbox mt-3">
<input type="checkbox" class="custom-control-input" id="hide_next_chord" name="hide_next_chord" />
<label for="hide_next_chord" class="custom-control-label">Hide next chord</label>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row bg-light mb-2 text-center">
<div class="col border-top border-bottom">
<h4 class="text-secondary mt-1 mb-2">Instructions</h4>
</div>
</div>
<div class="row mt-3">
<div class="col-md">
<p><strong>Flash Chord</strong> was created to help musicians take practicing chords, scales, and arpeggios to the next level by removing predictability and repetition. Flash Chord generates chords in a random sequence and with random qualities (major, minor, 7, etc.) so musicians have to learn the full range of their instrument without getting locked into patterns and memorization.</p>
</div>
</div>
<div class="row">
<div class="col-md">
<h4>Which instruments can use Flash Chord?</h4>
<ul>
<li>Guitar</li>
<li>Piano</li>
<li>Bass</li>
<li>Trumpet</li>
<li>Saxophone</li>
<li>Any woodwind, brass, or stringed instrument</li>
<li>Pitched percussion instruments, such as vibraphone</li>
<li>Maybe some crazy-talented vocalist with perfect pitch ;)</li>
<li>Any instrument capable of playing chords or pitched notes</li>
</ul>
</div>
<div class="col-md">
<h4>How do I use Flash Chord?</h4>
<ol>
<li><strong>Set a tempo:</strong> set the speed of chord changes; start slow if you're a beginner</li>
<li><strong>Set the time signature:</strong> choose the time signature for your the metronome</li>
<li><strong>Select a key:</strong> restrict the chords to a specific key or leave it on <em>Any</em> to challenge yourself even more<br /><span class="small">Note: in the current version, specifying a key will override the difficulty settings.</span></li>
<li><strong>Set a difficulty:</strong> pick a level that matches your abilities including beginner, intermediate, or advanced; if advanced is still too easy for you, you can also add chord extensions or hide the upcoming chord for the ultimate challenge!</li>
<li><strong>Click Start:</strong> click Start when you're ready to begin
<ul>
<li><strong>Silent practice:</strong> if you'd like to practice silently with out the audio cues, click Disable metronome</li>
</ul>
</li>
<li><strong>Click Stop:</strong> click Stop when you're done</li>
</ol>
</div>
</div>
<div class="row">
<div class="col">
<p>Once you've configured Flash Chord for your desired settings, grab your axe (instrument) and get busy comping chords, improvizing around scales, or running arpeggios against the chords being presented. Think of Flash Chord like a backing track or chord progression that is never the same! That randomized pattern is what is going to help make you a better musician by challenging you with the unexpected and taking you out of those same old, tired patterns.</p>
<p>Check out the <a href="/faq">Frequently Asked Questions (FAQ)</a> and <a href="/about">About</a> pages for more information about Flash Chord and find out how you can help contribute!</p>
</div>
</div>
</div>
<?php require 'components/footer.php'; ?>
<footer class="pt-4 my-md-5 pt-md-5 border-top">
<div class="container">
<div class="row">
<div class="col">
<?php require 'components/ad_footer.php'; ?>
</div>
</div>
<div class="row">
<div class="col-12 col-md">
<?php require 'components/copyright.php'; ?>
</div>
</div>
</div>
</footer>
<?php require 'components/footer.php'; ?>
</body>
</html>