<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> >Chris Double wrote:<br>
> >...<br>
> >> Rendering MIDI data into audio (via Quicktime is the only current<br>
> >> solution there I suppose?)<br>
<br>
Can you say what you mean here? Is there a simple way to call Quicktime<br>
from JavaScript to, eg, play F sharp in an oboe timbre for 0.8 seconds?<br></blockquote><div><br></div><div>Not sure what Chris meant, but you could generate the contents of a midi file in memory, then feed those bytes (after <a href="http://en.wikipedia.org/wiki/Uuencoding">uuencoding</a>) to your platform's midi player (w/ the embed tag). Here's an example: <a href="http://tinlizzie.org/ometa-js/#Etude" target="_blank">http://tinlizzie.org/ometa-js/#Etude</a></div>
<div> </div><div>I doubt this approach would be useful for real-time stuff like making sounds come out of your keyboard morph, but it's definitely worth knowing about.</div><div><br></div><div>Cheers,</div><div>Alex</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
> > You can use HTML 5 audio via data URL's to generate sound and play it -<br>
> > although it's a bit of a pain doing it this way.<br>
<br>
Do you mean one data URL per note (88 of them), with no control over, eg,<br>
duration, pitch, etc? Or is there something better?<br>
<br>
>There is work being<br>
> > done on working out an HTML audio generation API. See here for some<br>
>> discussion:<br>
>><br>
>> <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=490705" target="_blank">https://bugzilla.mozilla.org/show_bug.cgi?id=490705</a><br>
>><br>
>> If you generate the audio on the server and serve it as a WAV file then<br>
>> you can use HTML 5 audio to play it on recent Chrome, Safari, Opera and<br>
> > Firefox builds (I think all those support WAV).<br>
<br>
Can you say a bit more? Can one serve up (or otherwise obtain) one .WAV file<br>
and then use that as a timbre by ASDR techniques so you can play all 88<br>
notes in various durations and volumes from that one file?<br>
<br>
Thanks in advance<br>
<br>
- Dan<br>
_______________________________________________<br>
lively-kernel mailing list<br>
<a href="mailto:lively-kernel@hpi.uni-potsdam.de" target="_blank">lively-kernel@hpi.uni-potsdam.de</a><br>
<a href="http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel" target="_blank">http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel</a><br>
</blockquote></div><br>