https://github.com/teropa/drumkit
https://github.com/teropa/drumkit
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/teropa/drumkit
- Owner: teropa
- Created: 2020-08-01T07:34:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-01T08:52:37.000Z (over 4 years ago)
- Last Synced: 2024-09-16T10:03:56.079Z (5 months ago)
- Language: JavaScript
- Size: 140 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A collection of simple drum hits, usable as a sampled drum kit in a Web Audio application.
## Usage
```js
import {
kick,
snare,
hatClosed,
hatOpen,
tomLow,
tomMid,
tomHigh,
ride,
crash,
} from "@teropa/drumkit";// Each import will be a URL from which the sample data may be loaded and decoded with a Web Audio AudioContext
fetch(kick)
.then((res) => res.arrayBuffer())
.then((buf) => audioContext.decodeAudioData(buf));
```## License
Code is MIT licensed.
Samples are from freesound.org:
- [DWDS'S Deep House Drum kit](https://freesound.org/people/DWSD/packs/11575/?page=1#sound), licensed under Creative Commons Attribution
- [Stomachache's Analog Cymbal](https://freesound.org/people/stomachache/sounds/140153/), license under Creative Commons 0.
- [Karman Lyne's 808 toms](https://freesound.org/people/Karman_Lyne/sounds/520168/), license under Creative Commons 0.