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

Re: MIDI in Web Audio

From: Grant Galitz <grantgalitz@gmail.com>
Date: Mon, 18 Apr 2011 10:46:21 -0400
Message-ID: <-6370266246957019592@unknownmsgid>
To: Alistair Macdonald <al@bocoup.com>, public-audio@w3.org
The XAudioJS lib still needs an upsampler for that rare condition where the
developer specifies a sample rate lower than that of the hardware. I also
need to clean it up and expose some more stuff still. But for the most part
it should work fine for anyone.

Sent from my iPhone

On Apr 18, 2011, at 10:18 AM, Alistair Macdonald <al@bocoup.com> wrote:

Grant that's awesome! :)

For the record, I found the XAudioJS repository online here:
https://github.com/grantgalitz/XAudioJS

I noticed there was no README, but the code looks well managed so it's easy
to see what's going on.

Grant, did you do any testing with regards to performance across different
browsers/platforms? If so, what did you find? I remember you saying you felt
like Webkit in Safari on OSX gave you the best performance. Could I ask
which browser/OS you did the majority of the XAudioJS development work with?

Kind regards,

Alistair


On Fri, Apr 15, 2011 at 8:35 PM, Grant Galitz <grantgalitz@gmail.com> wrote:

> 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_Xob5BoZsand 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 Monday, 18 April 2011 14:46:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 18 April 2011 14:46:34 GMT