[lively-kernel] Lively Audio

Dan Ingalls danhhingalls at gmail.com
Wed Apr 21 02:34:21 CEST 2010

Hi, Guys, especially Chris -

I took a run at this a couple of years back -- it's why Lively has a piano keyboard.
In fact I had it in the opening screen for a few months as motivation.
The most fun I had with Lively was firing it up in Java once (part of
a big Java / JavaScript demo at Sun)  and being able to play
that keyboard through a midi synth API.  So...

> >Chris Double wrote:
> >...
> >> Rendering MIDI data into audio (via Quicktime is the only current
> >> solution there I suppose?)

Can you say what you mean here?  Is there a simple way to call Quicktime
from JavaScript to, eg, play F sharp in an oboe timbre for 0.8 seconds?

> > You can use HTML 5 audio via data URL's to generate sound and play it -
> > although it's a bit of a pain doing it this way.

Do you mean one data URL per note (88 of them), with no control over, eg,
duration, pitch, etc?  Or is there something better?

>There is work being
> > done on working out an HTML audio generation API. See here for some
>> discussion:
>> https://bugzilla.mozilla.org/show_bug.cgi?id=490705
>> If you generate the audio on the server and serve it as a WAV file then
>> you can use HTML 5 audio to play it on recent Chrome, Safari, Opera and
> > Firefox builds (I think all those support WAV).

Can you say a bit more?  Can one serve up (or otherwise obtain) one .WAV file
and then use that as a timbre by ASDR techniques so you can play all 88
notes in various durations and volumes from that one file?

Thanks in advance

	- Dan

More information about the lively-kernel mailing list