Drum machine


How to write a simple drum machine that runs in the browser.

Demo

Click the buttons to eat ice cream.

Annotated source code

The heavily annotated source code is 114 lines long.

Get the code

Remix on Glitch

Licence

The code is open source, under the MIT licence.