-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
30 lines (30 loc) · 855 Bytes
/
index.js
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
function onekick() {
var kickone = new Audio("Assets/Samples/808sample.wav");
kickone.play();
kickone.currentTime = 0; //recues
}
function onesnare() {
var snareone = new Audio("Assets/Samples/808snare.wav");
snareone.play();
snareone.currentTime = 0;
}
function oneclap() {
var clapone = new Audio("Assets/Samples/808clap.wav");
clapone.play();
clapone.currentTime = 0;
}
function openhihatone() {
var hihatone = new Audio("Assets/Samples/808hihatopen.wav");
hihatone.play();
hihatone.currentTime = 0;
}
function closedhihatone() {
var hihattwo = new Audio("Assets/Samples/808hihatclosed.wav");
hihattwo.play();
hihattwo.currentTime = 0;
}
function epiano() {
var epiano = new Audio("Assets/Samples/Epiano.wav");
epiano.play();
epiano.currentTime = 0;
}