Today, we used the Web Audio API to create a little sampler that you can run from your computer keyboard. The code is merely an adaptation of a post from Felix Roos’ blog, which is an excellent resource for learning about the Web Audio API.
- Press keys
a,b,con your computer keyboard to play it (or click the buttons). - The samples are lazy-loaded, so the first time might take a moment.
- You can edit the sample paths directly to play different samples.
- For example, try changing
SD0010.wavtoSD0000.wavbelow.