Re: MIDI in Web Audio

Also, it works well in firefox 4 for Mac, though web audio in google chrome
performs poorly.

Firefox 4 Mac: http://www.youtube.com/watch?v=Kr_Xob5BoZs&sns=em

Google Chrome Mac (With Web Audio Enabled):
http://www.youtube.com/watch?v=RjX1xXKWXtI&sns=em

Primarily tested on Mac. Firefox 4 on windows seems to be slightly buggy
though with it, while firefox 4 Mac runs it perfectly.

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:53:22 UTC