-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
162 lines (154 loc) · 5.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>JS-404</title>
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/main.css"/>
<script>
var clickOrTouchDown = "mousedown";
var clickOrTouchUp = "mouseup";
var desktop = true;
if ((navigator.platform.indexOf("iPhone") != -1) || (navigator.platform.indexOf("iPod") != -1) || (navigator.platform.indexOf("iPad") != -1)) {
clickOrTouchDown = "touchstart";
clickOrTouchUp = "touchend";
desktop = false;
document.write('<meta name="apple-mobile-web-app-capable" content="yes"/>');
document.write('<meta name="apple-mobile-web-app-status-bar-style" content="black" />');
} else {
document.write('<link rel="stylesheet" href="css/heavy.css"/>');
}
</script>
<script src="js/empty.js"></script>
<script src="js/storage.js"></script>
<script src="js/buffer-loader.js"></script>
<script src="js/app.js"></script>
<meta name="viewport" content="width=956, user-scalable=no">
</head>
<body>
<button id="toggleKeyBind" class="floatRight">Show key bindings</button>
<h1><a href="http://www.erikosterberg.com/js404">JS-404</a> <span><span>WebKit</span> RHYTHM COMPOSER</span></h1>
<p class="clear"></p>
<div id="soundPads">
<div class="soundPad"><div class="keyBind" style="visibility: hidden">a</div>
<div class="drumPad">House kick</div>
<p>filter</p>
<input class="filter" type="range" min="0" max="1" step="0.01" value="1">
<p>volume</p>
<input class="volume" type="range" min="0" max="1" step="0.01" value="0.5">
<p>pan</p>
<input class="pan" type="range" min="-3" max="3" step="0.01" value="0">
</div>
<div class="soundPad"><div class="keyBind">s</div>
<div class="drumPad">House snare</div>
<p>filter</p>
<input class="filter" type="range" min="0" max="1" step="0.01" value="1">
<p>volume</p>
<input class="volume" type="range" min="0" max="1" step="0.01" value="0.5">
<p>pan</p>
<input class="pan" type="range" min="-3" max="3" step="0.01" value="0">
</div>
<div class="soundPad"><div class="keyBind">d</div>
<div class="drumPad">Hand clap</div>
<p>filter</p>
<input class="filter" type="range" min="0" max="1" step="0.01" value="1">
<p>volume</p>
<input class="volume" type="range" min="0" max="1" step="0.01" value="0.5">
<p>pan</p>
<input class="pan" type="range" min="-3" max="3" step="0.01" value="0">
</div>
<div class="soundPad"><div class="keyBind">f</div>
<div class="drumPad">Closed hi-hat</div>
<p>filter</p>
<input class="filter" type="range" min="0" max="1" step="0.01" value="1">
<p>volume</p>
<input class="volume" type="range" min="0" max="1" step="0.01" value="0.5">
<p>pan</p>
<input class="pan" type="range" min="-3" max="3" step="0.01" value="0">
</div>
<div class="soundPad"><div class="keyBind">g</div>
<div class="drumPad">Open hi-hat</div>
<p>filter</p>
<input class="filter" type="range" min="0" max="1" step="0.01" value="1">
<p>volume</p>
<input class="volume" type="range" min="0" max="1" step="0.01" value="0.5">
<p>pan</p>
<input class="pan" type="range" min="-3" max="3" step="0.01" value="0">
</div>
<div class="soundPad"><div class="keyBind">h</div>
<div class="drumPad">909 ride cymbal</div>
<p>filter</p>
<input class="filter" type="range" min="0" max="1" step="0.01" value="1">
<p>volume</p>
<input class="volume" type="range" min="0" max="1" step="0.01" value="0.5">
<p>pan</p>
<input class="pan" type="range" min="-1" max="1" step="0.01" value="0">
</div>
</div>
<div id="sequencer">
<div class="keyBind"><p>1</p>
<p>2</p>
<p>3</p>
<p>4</p>
<p>5</p>
<p>6</p>
<p>7</p>
<p>8</p>
<p>q</p>
<p>w</p>
<p>e</p>
<p>r</p>
<p>t</p>
<p>y</p>
<p>u</p>
<p>i</p></div>
</div>
<div id="playField floatLeft">
<p>Pad <span id="padNum">1</span>: <select id="soundSelect" class="clear">
<optgroup label="Bass drums">
<option value="kick808">808 Kick</option>
<option value="housekick" selected>House kick</option>
<option value="deepkick">Deep kick</option>
</optgroup>
<optgroup label="Hi-hats">
<option value="chh909">Closed 909 hi-hat</option>
<option value="chh">Closed hi-hat</option>
<option value="ohh909">Open 909 hi-hat</option>
<option value="ohh">Open hi-hat</option>
</optgroup>
<optgroup label="Cymbals">
<option value="ride808">808 ride cymbal</option>
<option value="ride909">909 ride cymbal</option>
<option value="crash909">909 crash</option>
</optgroup>
<optgroup label="Snares and claps">
<option value="clap808">808 clap</option>
<option value="clap909">909 clap</option>
<option value="handclap">Hand clap</option>
<option value="housesnare">House snare</option>
<option value="snare808">808 snare</option>
</optgroup>
<optgroup label="Other">
<option value="acousticrim">Acoustic rim shot</option>
<option value="analogrim">Analog rim shot</option>
<option value="conga1">Conga 1</option>
<option value="conga2">Conga 2</option>
<option value="conga3">Conga 3</option>
</optgroup>
</select></p>
<div id="play" class="floatLeft">►</div><div class="keyBind floatLeft"> space</div>
<div id="tempoContainer" class="clearLeft">
<span class="keyBind">left </span><input id="tempo" type="range" min="60" max="180" value="120"><span class="keyBind"> right</span>
<p>Tempo: <span id="tempoTxt">120</span> BPM</p>
</div>
</div>
<br>
<select id="storage">
<option>New session</option>
</select>
<br>
<button id="load">Load</button><button id="save">Save</button><button id="delete">Delete</button>
<p class="clear"></p>
<p class="sign"><a href="http://www.erikosterberg.com">Erik Österberg</a> 2013</p>
</body>
</html>