Re: MIDI in Web Audio

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 UTC