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.
See the source. If you're specifically looking for the Web Audio code, find it in the MusicControl class.
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!
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.
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