Mimu

Milk Music: Demos and Library

The Demos

What is this?

This is a small collection of programmatically-generated music / audio demos. All of the audio processing of these demos takes place inside the web browser; there is no server code involved at all.

The code here is meant to serve as straightforward examples of how to do script-based audio generation and analysis using the JavaScript Web Audio API. Most of the code is in library form, ready for importation into other projects. Please use it!

See the source. If you're specifically looking for the Web Audio code, find it in the MusicControl class.

Items of note

This code uses the ScriptProcessorNode class, which is slated to be deprecated in a future version of Web Audio, but for which no replacement is yet implemented in any production web browser (as of late 2015). Hooray!

This code uses the new (as of 2015) JavaScript class definition syntax. As of this writing, this means that some browsers — notably Firefox and Safari (the latter inconsistently) — will not be able to run the demos successfully.

One final word

Enjoy!


Copyright 2015 the Mimu Authors (Dan Bornstein et alia). Licensed AS IS and WITHOUT WARRANTY under the Apache License, Version 2.0. Details: http://www.apache.org/licenses/LICENSE-2.0

Dan Bornstein / milk.com