This goofy app lets you:
- upload local files to the browser, then play them in the browser with the JavaScript Web Audio API
- play an oscillator from the Web Audio API
- load a sound from the server and play it with JavaScript
The sounds are analyzed in a little bar chart underneath (with an analyserNode
).
Live on Heroku.
/lib/audio.coffee
handles loading files from the server and starting and stopping buffers.
/lib/file.coffee
handles working with File
& FileReader
objects to list them on the page and play them with the code from audio.coffee
.
/lib/chart.coffee
provides the chart for the analyser node
/program.coffee
is a sloppy mess to tie it all together.