-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
357 lines (357 loc) · 15.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
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
<!DOCTYPE html>
<html lang='en'>
<head>
<title>METRONOME</title>
<meta charset='utf-8'>
<meta content='width=device-width, initial-scale=1.0' name='viewport'>
<meta content='metronome, online, browser, web audio api, odd rhythms, polyrhythm, multirhythm, rhythmic metronome, odd meters' name='keywords'>
<meta content='an audio-visual metronome for normal and odd meters' name='description'>
<meta content='christian woerner' name='author'>
<meta content='christian wörner' name='author'>
<meta content='ernst modersohn' name='author'>
<script src='/javascripts/vendor/jquery-1.7.2.min.js' type='text/javascript'></script>
<script src='/javascripts/vendor/bootstrap-modal.js' type='text/javascript'></script>
<script src='/javascripts/handlers.js' type='text/javascript'></script>
<script src='/javascripts/rhythmViewPort.js' type='text/javascript'></script>
<script src='/javascripts/audio_graph.js' type='text/javascript'></script>
<script src='/javascripts/drums.js' type='text/javascript'></script>
<script src='/javascripts/metronome.js' type='text/javascript'></script>
<script src='/javascripts/audio.js' type='text/javascript'></script>
<script src='/javascripts/rhythmEditor.js' type='text/javascript'></script>
<script src='/javascripts/utils.js' type='text/javascript'></script>
<script src='/javascripts/init.js' type='text/javascript'></script>
<script src='/javascripts/makams.js' type='text/javascript'></script>
<link href='/favicon.ico' id='favicon' rel='shortcut icon'>
<link href='/stylesheets/bootstrap-responsive.min.css' rel='stylesheet'>
<link href='/stylesheets/bootstrap.min.css' rel='stylesheet'>
<link href='/stylesheets/metro.css' rel='stylesheet' type='text/css'>
</head>
<body id='body'>
<div class='navbar navbar-inverse navbar-fixed-top'>
<div class='navbar-inner' id='main_nav'>
<div class='container' id='main_nav_container'>
<button class='btn btn-navbar' data-target='.nav-collapse' data-toggle='collapse' type='button'>
<span class='icon-bar'></span>
</button>
<a class='brand' href='/'>Metronome</a>
<div id='nav2'>
<ul>
<li>
<a data-spec='/#speed=102/meter=_***_-***-_' href='javascript:void' id='featured_rhythm'>
Featured Rhythm
</a>
</li>
<li>
<a data-toggle='modal' href='#aboutContainer' id='openSaveMeterModal'>
About
</a>
</li>
<li>
<a data-toggle='modal' href='#saveMeterContainer' id='openSaveMeterModal'>
Save Meter
</a>
</li>
</ul>
</div>
<div class='nav-collapse collapse'>
<ul class='nav'>
<li class=''>
<button class='btn btn-danger play_btn' id='playButton' title='keyboard: [space]'>
Play
<span class='ff_btn'>
[Spacebar]
</span>
</button>
</li>
<li class=''>
<button class='btn btn-small' data-toggle='modal' href='#controlsContainer'>Show controls</button>
</li>
<li class=''>
<button class='btn btn-small' data-toggle='modal' href='#rhythmEditorContainer' id='unhideNewRhythmButton'>Modify Rhythm</button>
</li>
<li class=''>
<button class='btn btn-small' id='randomSpeedButton'>Random speed</button>
</li>
<li class='speedMonitorCont'>
<span class='speedMonitor Monitor' title='keyboard: left/right arrow'>120.0</span>
<span class='Monitor' id='speedMonitorUnit' title='keyboard: left/right arrow'>BPM</span>
</li>
<li>
<span class='Monitor' id='analyzedRhythmMonitor'></span>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class='container'>
<div class='nav-collapse collapse'>
<ul class='left_nav'>
<li>
<img class='onOffPic' data-name='audio' data-offSrc='pics/ear_strong_grey.png' data-onSrc='pics/ear_strong_black.png' id='audioOnOff' src='pics/ear_strong_black.png' title='switch audio metronome on and off: keyboard: 'a''>
</li>
<li>
<img class='onOffPic' data-name='visual' data-offSrc='pics/auge_grey.png' data-onSrc='pics/auge_black.png' id='visualOnOff' src='pics/auge_black.png' title='switch visual metronome on and off: keyboard 'v''>
</li>
<li>
<img class='onOffPic' data-name='visualSequence' data-offSrc='pics/auge_sequence_grey.png' data-onSrc='pics/auge_sequence_black.png' id='visualSequenceOnOff' src='pics/auge_sequence_black.png' title='switch visual sequence on and off: keyboard 's''>
</li>
<li>
<img class='onOffPic' data-name='visualFullscreen' data-offSrc='pics/auge_frame_grey.png' data-onSrc='pics/auge_frame_black.png' id='visualFullscreenOnOff' src='pics/auge_frame_grey.png' title='switch background visual on and off: keyboard: 'f' (fullscreen)'>
</li>
<li>
<img class='onOffPic' id='vis_switcher' src='pics/metronome_circle_of_circles_black.png' title='switch between circle and linear display mode: keyboard: 'c''>
</li>
<li>
<img class='onOffPic' id='vis_prop_switcher' src='pics/metronome_proportional_black.png' title='switch between proportional and un-proportional display: keyboard: 'p''>
</li>
<li>
<select disabled='disabled' id='drone_select'>
<option id='null' value='null'>
None
</option>
<option id='drone_c'>
C
</option>
<option id='drone_c_sharp'>
C#
</option>
<option id='drone_d_flat' value='Db'>
Db
</option>
<option id='drone_d'>
D
</option>
<option id='drone_d_sharp'>
D#
</option>
<option id='drone_e_flat'>
Eb
</option>
<option id='drone_e'>
E
</option>
<option id='drone_f'>
F
</option>
<option id='drone_f_sharp'>
F#
</option>
<option id='drone_g_flat'>
Gb
</option>
<option id='drone_g'>
G
</option>
<option id='drone_g_sharp'>
G#
</option>
<option id='drone_a_flat'>
Ab
</option>
<option id='drone_a'>
A
</option>
<option id='drone_b_flat'>
Bb
</option>
<option id='drone_b'>
B
</option>
</select>
</li>
</ul>
</div>
<div class='hero-unit'>
<div id='rhythmViewPort' style='position:relative;min-height:300px;'>
<!-- /%span{:id=>"meter", :style=>'background-color:#888888;position:absolute;'} -->
<span id='one' style='background-color:#BB9999;position:absolute;'></span>
<span id='two' style='background-color:#8888BB;position:absolute;'></span>
<span id='three' style='background-color:#AAAA11;position:absolute;'></span>
<span id='four' style='background-color:#7788FF;position:absolute;'></span>
</div>
<br>
<div class='container'>
<span id='links_list_toggler'>
links
</span>
<p id='links_list' style='display:none'>
<a href="https://metronome.zanstaen.org/#speed=280/meter=_*-*_*-*-/pulse=0.1/bell=0.2/drone=C/drone_vol=0.6/">Niska - https://metronome.zanstaen.org/#speed=280/meter=_*-*_*-*-/pulse=0.1/bell=0.2/drone=C/drone_vol=0.6/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=261/meter=_**-**_*/pulse=0.1/bell=0.2/drone=D/drone_vol=0.6/">Bojan - https://metronome.zanstaen.org/#speed=261/meter=_**-**_*/pulse=0.1/bell=0.2/drone=D/drone_vol=0.6/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=210/meter=_**-**_*/pulse=0.1/bell=0.2/drone=C/drone_vol=0.6/">Sorin - https://metronome.zanstaen.org/#speed=210/meter=_**-**_*/pulse=0.1/bell=0.2/drone=C/drone_vol=0.6/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=180/meter=_*-_*-*/pulse=0.1/bell=0.2/drone=C/drone_vol=0.6/">Piazza marina - https://metronome.zanstaen.org/#speed=180/meter=_*-_*-*/pulse=0.1/bell=0.2/drone=C/drone_vol=0.6/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=180/meter=_*-_*-*/pulse=0.1/bell=0.2/drone_seq=C_2_C#_1_C_1/drone_vol=0.6/">Piazza marina (with mod) - https://metronome.zanstaen.org/#speed=180/meter=_*-_*-*/pulse=0.1/bell=0.2/drone_seq=C_2_C#_1_C_1/drone_vol=0.6/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=280/meter=_*-*_*-_*-*_-*/pulse=0.1/bell=0.2/drone_seq=random_32/drone_vol=0.6/">Rachenitsa - random drone - https://metronome.zanstaen.org/#speed=280/meter=_*-*_*-_*-*_-*/pulse=0.1/bell=0.2/drone_seq=random_32/drone_vol=0.6/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=280/meter=_*-*_*--*/pulse=0.1/bell=0.2/drone_seq=random_24/drone_vol=0.6/">Karsilamas - random drone - https://metronome.zanstaen.org/#speed=280/meter=_*-*_*--*/pulse=0.1/bell=0.2/drone_seq=random_24/drone_vol=0.6/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=280/meter=_*-*_*--*/pulse=0.1/bell=0.2/drone=C/drone_vol=0.6/">Karsilamas - drone in C - https://metronome.zanstaen.org/#speed=280/meter=_*-*_*--*/pulse=0.1/bell=0.2/drone=C/drone_vol=0.6/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=280/meter=_*-*_*-_*-*/pulse=0.1/bell=0.2/drone_seq=random_16/drone_vol=0.6/">Kopanitsa - random drone - https://metronome.zanstaen.org/#speed=280/meter=_*-*_*-_*-*/pulse=0.1/bell=0.2/drone_seq=random_16/drone_vol=0.6/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=280/meter=_*-*_*-_*-*/pulse=0.1/bell=0.2/drone=C/drone_vol=0.6/">Kopanitsa - drone in C - https://metronome.zanstaen.org/#speed=280/meter=_*-*_*-_*-*/pulse=0.1/bell=0.2/drone=C/drone_vol=0.6/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=280/meter=_*-*_*-_*-*/pulse=0.1/bell=0.2/drone=C/drone_vol=0.6/speed_prog=12*1.01/">accellerating kopanitsa - drone in C - https://metronome.zanstaen.org/#speed=280/meter=_*-*_*-_*-*/pulse=0.1/bell=0.2/drone=C/drone_vol=0.6/speed_prog=12*1.01/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=280/meter=_*-*_*-*_*-_*-*/pulse=0.1/bell=0.2/drone=C/drone_vol=0.6/">buchimish - https://metronome.zanstaen.org/#speed=280/meter=_*-*_*-*_*-_*-*/pulse=0.1/bell=0.2/drone=C/drone_vol=0.6/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=280/meter=_*-*_*-*_*-_*-*/pulse=0.1/bell=0.2/drone_seq=random_10_C_D_Eb_E_F_G_A_Bb/drone_vol=0.6/">buchimish for Bb - https://metronome.zanstaen.org/#speed=280/meter=_*-*_*-*_*-_*-*/pulse=0.1/bell=0.2/drone_seq=random_10_C_D_Eb_E_F_G_A_Bb/drone_vol=0.6/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=300/meter=_*-*_*-*-_*-*/pulse=0.1/bell=0.2/drone=C/drone_vol=0.6/">postupano - https://metronome.zanstaen.org/#speed=300/meter=_*-*_*-*-_*-*/pulse=0.1/bell=0.2/drone=C/drone_vol=0.6/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=300/meter=_*-*_*-*-_*-*/pulse=0.1/bell=0.2/drone_seq=random_10_C_D_Eb_E_F_G_A_Bb/drone_vol=0.6/">postupano for Bb - https://metronome.zanstaen.org/#speed=300/meter=_*-*_*-*-_*-*/pulse=0.1/bell=0.2/drone_seq=random_10_C_D_Eb_E_F_G_A_Bb/drone_vol=0.6/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=140/meter=_**-*_*-**/pulse=0.1/bell=0.2/">Plain Aksak - https://metronome.zanstaen.org/#speed=140/meter=_**-*_*-**/pulse=0.1/bell=0.2/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=140/meter=_**-*_*-**/pulse=0.1/bell=0.2/speed_prog=4*1.02/">Accellerating Aksak - https://metronome.zanstaen.org/#speed=140/meter=_**-*_*-**/pulse=0.1/bell=0.2/speed_prog=4*1.02/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=140/meter=_**-*_*-**/pulse=0.1/bell=0.2/speed_prog=12*0.99/">Slowing Aksak - https://metronome.zanstaen.org/#speed=140/meter=_**-*_*-**/pulse=0.1/bell=0.2/speed_prog=12*0.99/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=130/meter=_**-*/pulse=0.1/bell=0.2/">Slow Zagorisios 3 2 - https://metronome.zanstaen.org/#speed=130/meter=_**-*/pulse=0.1/bell=0.2/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=130/meter=_*-**/pulse=0.1/bell=0.2/">Slow Zagorisios 2 3 - https://metronome.zanstaen.org/#speed=130/meter=_*-**/pulse=0.1/bell=0.2/</a><br/>
<a href="https://metronome.zanstaen.org/#speed=130/meter=_*-*_*/pulse=0.1/bell=0.2/speed_prog=4*rand_minmaxfactor_0.9-1.2">Tsamikos with random gradual speed changes - https://metronome.zanstaen.org/#speed=130/meter=_*-*_*/pulse=0.1/bell=0.2/speed_prog=4*rand_minmaxfactor_0.9-1.2</a><br/>
<a href="https://metronome.zanstaen.org/#speed=200/meter=_*-_*-_-*_*-/pulse=0.1/bell=0.2/speed_prog=4*rand_minmax_150-250">Zonaradikos with random jumpy speed changes within minmax band - https://metronome.zanstaen.org/#speed=200/meter=_*-_*-_-*_*-/pulse=0.1/bell=0.2/speed_prog=4*rand_minmax_150-250</a><br/>
</p>
</div>
<div class='container' id='makams_container'>
<span id='makams_list_toggler'>
makams
</span>
<div id='makams_list' style='display:none'></div>
</div>
<div class='modal hide fade in modalPanelContainer' id='rhythmEditorContainer' style='display:none;'>
<div class='modalPanel' id='newRhythm'>
<div class='modal-header'>
<h4>Number of Items</h4>
<span class='Monitor' id='newRhythmLengthMonitor'></span>
<input id='newRhythmLengthSlider' max='30' min='1' step='1' type='range' value='4'>
</div>
<div class='modal-body'>
<h4>
Timeline
</h4>
<div id='rhythmEditor'>
<p class='tips'>
TIP: click on the circles to change instrument
</p>
<!-- / filled by JavaScript -->
</div>
</div>
<div class='modal-footer'>
<button class='btn btn-small' data-dismiss='modal' id='saveNewRhythmButton'>Save New Rhythm</button>
<button class='btn btn-small' data-dismiss='modal' id='hideNewRhythmButton'>hide rhythm editor</button>
</div>
</div>
</div>
<div class='modal hide fade in modalPanelContainer' id='controlsContainer' style='display:none;'>
<div class='modalPanel' id='controls'>
<div class='modal-header'>
Controls
</div>
<div class='modal-body'>
<h4>bpm</h4>
<table class='broad'><tr>
<td id='speedslider_cell'>
<input id='speedSlider' max='700' min='20' step='0.1' title='keyboard: left/right arrow' type='range' value='120'>
</td>
<td id='speedmonitor_cell'>
<span class='speedMonitor Monitor'>120.0</span>
</td>
</tr></table>
<hr>
<h4>Volume</h4>
<table class='broad'>
<tr>
<td>
Master
<input class='volVertical' max='2' min='0' name='masterVol' orient='vertical' rel='master' step='0.01' type='range' value='1'>
<br>
<span class='Monitor' id='masterVolMonitor'>0.2</span>
</td>
<td>
Kick / Low
<input class='volVertical' max='1.2' min='0' name='kickVol' orient='vertical' rel='kick' step='0.01' type='range' value='1'>
<br>
<span class='Monitor' id='kickVolMonitor'>1.0</span>
</td>
<td>
Snare / Medium
<input class='volVertical' max='1.2' min='0' name='snareVol' orient='vertical' rel='snare' step='0.01' type='range' value='1'>
<br>
<span class='Monitor' id='snareVolMonitor'>1.0</span>
</td>
<td>
Hihat / High
<input class='volVertical' id='pulse_slider' max='1.2' min='0' name='hihatVol' orient='vertical' rel='hihat' step='0.01' type='range' value='1'>
<br>
<span class='Monitor' id='hihatVolMonitor'>1.0</span>
</td>
<td>
Tambourine / bell (cycle start)
<input class='volVertical' id='bell_slider' max='2.5' min='0' name='bellVol' orient='vertical' rel='bell' step='0.01' type='range' value='0.1'>
<br>
<span class='Monitor' id='bellVolMonitor'>1.0</span>
</td>
</tr>
</table>
</div>
<div class='modal-footer'>
<a class='btn' data-dismiss='modal' href='#'>Close</a>
</div>
</div>
</div>
<div class='modal hide fade in modalPanelContainer' id='saveMeterContainer' style='display:none;'>
<div class='modalPanel' id='newRhythm'>
<div class='modal-header'>
<h4>Save the current Meter</h4>
</div>
<div class='modal-body'>
bookmark the page or save this url:
<br>
<input id='shareUrlInput' style='width: 100%;font-size:1.2em;height:2em;' type='text'>
</div>
<div class='modal-footer'>
<a class='btn' data-dismiss='modal' href='#'>Ok</a>
</div>
</div>
</div>
<div class='modal hide fade in modalPanelContainer' id='aboutContainer' style='display:none;'>
<div class='modalPanel' id='newRhythm'>
<div class='modal-header'>
<h3>Metronome</h3>
</div>
<div class='modal-body' id='about-body'>
<h4>About</h4>
<p>
<em>
Metronome
</em>
is a online metronome with the following features: speed control, volume control, free choice of rhythms,
acoustic, visual or audio-visual mode, drones, automation for speed and drones, keyboard control.
See the links section for automation examples.
Automation is done from the URL (drone_seq, speed_prog, etc.)
</p>
<p>
NB:
<em>
Metronome
</em>
uses the
<a href='https://www.w3.org/TR/webaudio/'>
Web Audio API
</a>
for audio generation.
</p>
<br>
<h4>Github repository</h4>
<p>
<em>Metronome</em>
is free and open source. The source code is available on
<a href='https://github.com/kr1/metronome'>
GitHub
</a>
</p>
</div>
</div>
</div>
</div>
<hr>
<footer>
© Zanstaën -
<a href='https://soundcloud.com/mo3b1us'>Elea</a>
&
<a href='https://soundcloud.com/ernst-modersohn'>Ernst Modersohn</a>
&
<a href='https://soundcloud.com/p1ngan'>Xenophyton</a>
2013-2023
</footer>
</div>
</body>
</html>