-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdrumkit.html
42 lines (37 loc) · 1.31 KB
/
drumkit.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
<html>
<head>
<script src="lib/processing.js"></script>
<script src="lib/jquery-1.11.3.js"></script>
<script src="buffer-loader.js"></script>
<script src="init.js"></script>
<script src="play.js"></script>
<script src="show.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body align="center">
<h1>DRUM KIT</a></h1>
<h2>Please wait a few seconds, then hit it.</h2>
<p align="center">
You can use your mouse or keyboard to play this drum.</br>
KEY:SPACE - KICK, D - SNARE, H - TOM1(left), J - TOM2(middle), K - TOM3(right),
W - HI-HAT, E - CRASH CYMBOL, I - RIDE CYMBOL, X - HIHAT switchover(CLOASED/OPEN).</br>
The following is a sample made by this drumkit:
<input type="button" id="play" onclick="Sample.toggle(BUFFERS.sample,0);" value="Play/Stop">
</br>
</p>
<div id="divLeft">
<canvas id="canvas1" width="640" height="360"></canvas>
</div>
<div id="divRight">
<canvas id="graph" width="512" height="360" onclick="Sample.analyserType();"></canvas>
</div>
<script src="main1.js"></script>
</br>
Volume:
<input type="range" id="volume" min="0" max="100" value="100" oninput="Sample.changeVolume(this);">
</br>
<!--Revlevel:-->
<!--<input type="range" id="revlevel" min="0" max="100" value="100" oninput="Sample.changeRevlev(this);">-->
<!--</br>-->
</body>
</html>