-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
303 lines (278 loc) · 13.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>keybored</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-theme.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/introjs.css" rel="stylesheet">
<link href="css/introjs-flattener.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet">
<link rel="icon" href="https://tresdonjones.com/img/favicon.ico">
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-101554390-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div class="container">
<div class="row" style="margin-top: 1%;">
<div class="col-xs-10">
<h1>Keybored</h1>
</div>
<div class="col-xs-1">
<img data-step="11" data-intro="Lastly, to repeat this tutorial at any time just click on this
button right here! Happy noising :)" src="images/question-mark.svg" id="help" onclick="introJs().start();">
</div>
<div class="col-xs-1">
<a href="https://github.com/Tresdon/keybored" target="_blank">
<img class="img-responsive col-xs-12" id="github-icon" src="images/github-dark.png">
</a>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="progress">
<div class="progress-bar progress-bar-info progress-bar-striped active" role="progressbar"
aria-valuenow="0"
aria-valuemin="0" aria-valuemax="100">
Loading.. (cool yr jets k)
</div>
</div>
</div>
</div>
<div class="row center-block text-center" data-step="1"
data-intro="Hey there!
This short tutorial should only take about a minute or so
but if at any point it's not what you need in life feel free to use that <code>Skip</code> button down there.
This thing here is the 'keybored'. Press some buttons on your keyboard and see what happens :)">
<div id="pads" class="center-block text-center col-xs-12">
<!-- First row of pads, numbers 1-= -->
<div class="row" id="row1">
<div class="color" style="visibility: hidden"></div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
</div>
<!-- second row, q-] -->
<div class="row" id="row2">
<div class="color" style="visibility: hidden"></div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded" data-step="10"
data-intro="If you're not a fan of these sounds you can record your own!
Just click on the pad while there is no beat selected and make a noise.
(You're gonna need to approve microphone access to use this feature)">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
</div>
<!-- third row, a-' -->
<div class="row" id="row3">
<div class="color" style="visibility: hidden"></div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
</div>
<!-- Fourth row of pads, z-/ -->
<div class="row" id="row4">
<div class="color" style="visibility: hidden"></div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
<div class="col-xs-1 pad img-rounded">
<img class="mic-image" src="images/mic.svg">
</div>
</div>
</div>
</div>
<div class="row" id="sequencer" data-step="2" data-position="top"
data-intro="This is the sequencer. This is going to allow you to create some sick beats to show to your
grandma, goldfish, government, etc. Click on one of these pads and then strike keys on your keyboard.
From now on that sound will always play on this beat unless you unselect it (via striking the key again
or just clicking on it). Click on the pad again to unselect it.">
<canvas class="col-xs-12" id="sequencerCanvas" resize></canvas>
</div>
<div class="row" id="controls" data-step="3" data-position="top" data-intro="These are some helpful buttons to control the sequencer.
Let's walk through them real quick.">
<div class="col-xs-offset-3 col-xs-1" data-step="4" data-position="top" data-intro="The play/pause button. Can also be triggered with
the space bar. Pausing the sequencer remembers the beat so when you play it again it will play from that beat.">
<button class="sequencer-control" id="play-pause-button" onclick="toggleSequencer()">
<img src="images/media_control_icons/play-black.svg" id="play-pause-image">
</button>
<p class="text-center">Play</p>
</div>
<div class="col-xs-1" data-step="5" data-position="top" data-intro="The stop button. This will pause the sequencer and when you next
play it, it will start from the beginning.">
<button class="sequencer-control" id="stop-button" onclick="stopSequencer()">
<img src="images/media_control_icons/stop-black.svg">
</button>
<p class="text-center">Stop</p>
</div>
<div class="col-xs-1" data-step="6" data-position="top" data-intro="The record button. This will allow you to record your playing
into the sequencer directly. Pressing this button starts the sequencer and each sound you play will play at that beat in the future.
(While record is active and the sequencer is playing you cannot click a beat to select it for input.)">
<button class="sequencer-control" id="record-button" onclick="toggleRecord()">
<img src="images/media_control_icons/record-black.svg">
</button>
<p class="text-center">Record</p>
</div>
<div class="col-xs-1" data-step="7" data-position="top" data-intro="The Metronome button. If this is enabled (blue) then you will
hear a faint tick on each pulse of the beat. This is used to help keep time.">
<button class="sequencer-control" id="metronome-button" onclick="toggleMetronome()">
<img src="images/media_control_icons/metronome-blue.svg">
</button>
<p class="text-center">Metronome</p>
</div>
<div class="col-xs-1 number-input text-center" data-step="8" data-position="top"
data-intro="Change the volume!">
<input class="sequencer-control " id="volume-input" value="40">%
<p class="text-center">Volume</p>
</div>
<div class="col-xs-1 number-input text-center" data-step="9" data-position="top" data-intro="Change the tempo!">
<input class="sequencer-control" id="bpm-input" value="120">
<p class="text-center">BPM</p>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/paper-full.min.js"></script>
<script src="js/howler.min.js"></script>
<script src="js/intro.min.js"></script>
<script src="js/draggable-number.min.js"></script>
<script src="js/pads.js"></script>
<script src="js/sequencer.js"></script>
<script src="js/mic.js"></script>
<script src="js/keybored.js"></script>
</body>
</html>