W3C home > Mailing lists > Public > public-audio@w3.org > April to June 2011

MIDI in Web Audio

From: Grant Galitz <grantgalitz@gmail.com>
Date: Fri, 15 Apr 2011 20:35:03 -0400
Message-ID: <BANLkTinFkD-Wo30EErXm9aFLO4R+mpRxoQ@mail.gmail.com>
To: public-audio@w3.org
For anyone interested in this topic:
It can be done in JavaScript with Web Audio completely without the use of
plugins, you just have to implement MIDI for yourself (re-invent the wheel
kinda). You just have to do something similar to what I did for the JS GBC
emulator audio. You have to make a javascriptnode for web audio, keep an
audio buffer JS-side, manage the buffer correctly, and create an audio
sample generator. You just have to make your own audio sample generator if
you're gonna use XAudioJS, since I take care of the rest behind the scenes
in the github-based js library.

Seriously, listen closely to http://www.youtube.com/watch?v=Kr_Xob5BoZs and
you will notice it sounds all MIDI-ish. That's because the audio hardware
emulated is basically Nintendo's take on MIDI kind of.
Received on Saturday, 16 April 2011 00:35:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 16 April 2011 00:35:31 GMT