-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
249 lines (242 loc) · 9.43 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Step sequencer</title>
<!-- Google Font -->
<link
href="https://fonts.googleapis.com/css2?family=Recursive:wght@400;700&display=swap"
rel="stylesheet"
/>
<!-- Font Awesome -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
integrity="sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog=="
crossorigin="anonymous"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<head>
<h1>
Make a beat !
</h1>
<p>
Use the grid below to make a pattern:
</p>
</head>
<main>
<!-- Sequencer -->
<div class="sequencer">
<!-- Controls -->
<div class="controls">
<button class="play">
<i class="fa fa-play" aria-hidden="true"></i>
</button>
<div class="tempo">
<p>Speed <span class="tempo-val">120</span></p>
<input
type="range"
class="tempo-slider"
min="40"
max="300"
value="120"
/>
</div>
</div>
<!-- Pattern area -->
<div class="patterns">
<h2 class="sample-name">Open Hat</h2>
<div class="box open-hat-box b0">
<span class="mobile-num">1</span>
</div>
<div class="box open-hat-box b1">
<span class="mobile-num">2</span>
</div>
<div class="box open-hat-box b2">
<span class="mobile-num">3</span>
</div>
<div class="box open-hat-box b3">
<span class="mobile-num">4</span>
</div>
<div class="box open-hat-box b4">
<span class="mobile-num">5</span>
</div>
<div class="box open-hat-box b5">
<span class="mobile-num">6</span>
</div>
<div class="box open-hat-box b6">
<span class="mobile-num">7</span>
</div>
<div class="box open-hat-box b7">
<span class="mobile-num">8</span>
</div>
<div class="box open-hat-box b8">
<span class="mobile-num">9</span>
</div>
<div class="box open-hat-box b9">
<span class="mobile-num">10</span>
</div>
<div class="box open-hat-box b10">
<span class="mobile-num">11</span>
</div>
<div class="box open-hat-box b11">
<span class="mobile-num">12</span>
</div>
<div class="box open-hat-box b12">
<span class="mobile-num">13</span>
</div>
<div class="box open-hat-box b13">
<span class="mobile-num">14</span>
</div>
<div class="box open-hat-box b14">
<span class="mobile-num">15</span>
</div>
<div class="box open-hat-box b15">
<span class="mobile-num">16</span>
</div>
<h2 class="sample-name">Closed Hat</h2>
<div class="box closed-hat-box b0">
<span class="mobile-num">1</span>
</div>
<div class="box closed-hat-box b1">
<span class="mobile-num">2</span>
</div>
<div class="box closed-hat-box b2">
<span class="mobile-num">3</span>
</div>
<div class="box closed-hat-box b3">
<span class="mobile-num">4</span>
</div>
<div class="box closed-hat-box b4">
<span class="mobile-num">5</span>
</div>
<div class="box closed-hat-box b5">
<span class="mobile-num">6</span>
</div>
<div class="box closed-hat-box b6">
<span class="mobile-num">7</span>
</div>
<div class="box closed-hat-box b7">
<span class="mobile-num">8</span>
</div>
<div class="box closed-hat-box b8">
<span class="mobile-num">9</span>
</div>
<div class="box closed-hat-box b9">
<span class="mobile-num">10</span>
</div>
<div class="box closed-hat-box b10">
<span class="mobile-num">11</span>
</div>
<div class="box closed-hat-box b11">
<span class="mobile-num">12</span>
</div>
<div class="box closed-hat-box b12">
<span class="mobile-num">13</span>
</div>
<div class="box closed-hat-box b13">
<span class="mobile-num">14</span>
</div>
<div class="box closed-hat-box b14">
<span class="mobile-num">15</span>
</div>
<div class="box closed-hat-box b15">
<span class="mobile-num">16</span>
</div>
<h2 class="sample-name">Clap</h2>
<div class="box clap-box b0"><span class="mobile-num">1</span></div>
<div class="box clap-box b1"><span class="mobile-num">2</span></div>
<div class="box clap-box b2"><span class="mobile-num">3</span></div>
<div class="box clap-box b3"><span class="mobile-num">4</span></div>
<div class="box clap-box b4"><span class="mobile-num">5</span></div>
<div class="box clap-box b5"><span class="mobile-num">6</span></div>
<div class="box clap-box b6"><span class="mobile-num">7</span></div>
<div class="box clap-box b7"><span class="mobile-num">8</span></div>
<div class="box clap-box b8"><span class="mobile-num">9</span></div>
<div class="box clap-box b9">
<span class="mobile-num">10</span>
</div>
<div class="box clap-box b10">
<span class="mobile-num">11</span>
</div>
<div class="box clap-box b11">
<span class="mobile-num">12</span>
</div>
<div class="box clap-box b12">
<span class="mobile-num">13</span>
</div>
<div class="box clap-box b13">
<span class="mobile-num">14</span>
</div>
<div class="box clap-box b14">
<span class="mobile-num">15</span>
</div>
<div class="box clap-box b15">
<span class="mobile-num">16</span>
</div>
<h2 class="sample-name">Kick</h2>
<div class="box kick-box b0"><span class="mobile-num">1</span></div>
<div class="box kick-box b1"><span class="mobile-num">2</span></div>
<div class="box kick-box b2"><span class="mobile-num">3</span></div>
<div class="box kick-box b3"><span class="mobile-num">4</span></div>
<div class="box kick-box b4"><span class="mobile-num">5</span></div>
<div class="box kick-box b5"><span class="mobile-num">6</span></div>
<div class="box kick-box b6"><span class="mobile-num">7</span></div>
<div class="box kick-box b7"><span class="mobile-num">8</span></div>
<div class="box kick-box b8"><span class="mobile-num">9</span></div>
<div class="box kick-box b9">
<span class="mobile-num">10</span>
</div>
<div class="box kick-box b10">
<span class="mobile-num">11</span>
</div>
<div class="box kick-box b11">
<span class="mobile-num">12</span>
</div>
<div class="box kick-box b12">
<span class="mobile-num">13</span>
</div>
<div class="box kick-box b13">
<span class="mobile-num">14</span>
</div>
<div class="box kick-box b14">
<span class="mobile-num">15</span>
</div>
<div class="box kick-box b15">
<span class="mobile-num">16</span>
</div>
<div class="bar-num"></div>
<div class="bar-num msr">1</div>
<div class="bar-num">2</div>
<div class="bar-num">3</div>
<div class="bar-num">4</div>
<div class="bar-num msr">5</div>
<div class="bar-num">6</div>
<div class="bar-num">7</div>
<div class="bar-num">8</div>
<div class="bar-num msr">9</div>
<div class="bar-num">10</div>
<div class="bar-num">11</div>
<div class="bar-num">12</div>
<div class="bar-num msr">13</div>
<div class="bar-num">14</div>
<div class="bar-num">15</div>
<div class="bar-num">16</div>
</div>
<div class="note">
<p>If you are having sound playback issues, please try again using Chrome.</p>
</div>
<audio class="kick-sound" src="./sounds/kick.wav"></audio>
<audio class="clap-sound" src="./sounds/clap.wav"></audio>
<audio class="open-hat-sound" src="./sounds/open-hat.wav"></audio>
<audio class="closed-hat-sound" src="./sounds/closed-hat.wav"></audio>
</div>
</main>
</div>
<script src="app.js"></script>
</body>
</html>