Julia Evans

Day 33: How to make music with ClojureScript

I am working on a small project to practice change ringing with ClojureScript.

As always when starting a new project I have been consulting approximately a million resources to get started. So I thought I’d collect them all together in one place instead of searching for them over and over forever.

Getting started with ClojureScript

Web Audio

There’s a newish API for synthesizing sound in the browser called the WebAudio API.

  • Some demos
  • Very cool player piano app by Liam Griffiths, a Hacker Schooler in my batch. You will have to run it on your computer but it will be worth it.
  • Hum, a small ClojureScript wrapper around the WebAudio API. If you want to test if it works in your browser, try this CLJSFiddle. It should make an annoying noise when you run it..

Sound samples

If you don’t want to synthesize music, there are tons of samples on freesound.org