This repository was archived by the owner on Jan 9, 2019. It is now read-only.

Description
- Load a sample using XMLHttpRequest
- Decode using AudioContexts
decodeAudioData
- Create buffer source
- Provide some controls to play/stop the buffer and also alter its attributes
Alternative more musical idea instead of controls for a single shot sample: use a piano keyboard or similar and make the sample play at different playbackRates
Here's a piano component - it might be relatively feasible to use or transform to use without Web Components https://github.com/openmusic/piano-keyboard