You can use any JavaScript library as $agent.
In this case I'm using Pizzicato.js to generate sound.
You can check out the web app at https://jasonette.github.io/agent.audio
And watch the same web app function as a Jasonette agent, through https://jasonette.github.io/agent.audio/app.json