Created
February 7, 2019 01:32
-
-
Save jaamaalxyz/adc2cccd3f88a8f7c408e522f6bcfc5b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const drumMode = [ | |
{ | |
id: "kick-drum", | |
keyCode: 81, | |
src: | |
"https://res.cloudinary.com/dzsmdyknz/video/upload/v1532587165/fcc-drum-machine/kick-drums/kick-drum-7.mp3", | |
keyTrigger: "Q" | |
}, | |
{ | |
id: "Snare", | |
keyCode: 87, | |
src: | |
"https://res.cloudinary.com/dzsmdyknz/video/upload/v1532587362/fcc-drum-machine/snare-drums/snaredrum1.mp3", | |
keyTrigger: "W" | |
}, | |
{ | |
id: "Hi-Hat-Open", | |
keyCode: 69, | |
src: | |
"https://res.cloudinary.com/dzsmdyknz/video/upload/v1532587997/fcc-drum-machine/hi-hats/hihat1.mp3", | |
keyTrigger: "E" | |
}, | |
{ | |
id: "Hi-Hat-Close", | |
keyCode: 65, | |
src: | |
"https://res.cloudinary.com/dzsmdyknz/video/upload/v1532587997/fcc-drum-machine/hi-hats/hihat4.mp3", | |
keyTrigger: "A" | |
}, | |
{ | |
id: "Tom-Tom", | |
keyCode: 83, | |
src: | |
"https://res.cloudinary.com/dzsmdyknz/video/upload/v1532588185/fcc-drum-machine/tom-toms/tomtomdrum3.mp3", | |
keyTrigger: "S" | |
}, | |
{ | |
id: "Crash", | |
keyCode: 68, | |
src: | |
"https://res.cloudinary.com/dzsmdyknz/video/upload/v1532587948/fcc-drum-machine/cymbals%202/cymbalcrash1.mp3", | |
keyTrigger: "D" | |
}, | |
{ | |
id: "Ride", | |
keyCode: 90, | |
src: | |
"https://res.cloudinary.com/dzsmdyknz/video/upload/v1532582454/sample-swap/drums-and-single-hits/rides/RIDE_S_11.mp3", | |
keyTrigger: "Z" | |
}, | |
{ | |
id: "China", | |
keyCode: 88, | |
src: | |
"https://res.cloudinary.com/dzsmdyknz/video/upload/v1532580120/sample-swap/drums-and-single-hits/china/big_china_cym.mp3", | |
keyTrigger: "X" | |
}, | |
{ | |
id: "Cowbell", | |
keyCode: 67, | |
src: | |
"https://res.cloudinary.com/dzsmdyknz/video/upload/v1532587867/fcc-drum-machine/cowbells/cowbell1.mp3", | |
keyTrigger: "C" | |
} | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment