W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2009

[whatwg] Audio synthesis

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 20 Jul 2009 22:59:12 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0907202249190.23663@hixie.dreamhostps.com>
On Mon, 6 Jul 2009, Charles Pritchard wrote:
>
> Use a sound of varying pitch to hint to a user the location of their 
> mouse (is it hovering over a button, is it x/y pixels away from the edge 
> of the screen, how close is it to the center).
> 
> Alter the pitch of a sound to make a very cheap midi instrument.
> 
> Pre-mix a few generated sounds, because the client processor is slow.
> 
> Alter the pitch of an actual audio recording, and pre-mix it, to give 
> different sounding voices to pre-recorded readings of a single text. As 
> has been tried for "male" "female" sound fonts.
> 
> Support very simple audio codecs, and programmable synthesizers.

Cool, thanks, I've noted these in the spec's source. I think some of these 
would indeed justify adding an API in the next versions of the language.


On Tue, 7 Jul 2009, Philip Jagenstedt wrote:
> 
> For all of the simpler use cases you can already generate sounds 
> yourself with a data uri. For example, with is 2 samples of silence: 
> "data:audio/wav;base64,UklGRigAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQQAAAAAAAAA".
> 
> It might be worthwhile implementing the API you want as a JavaScript 
> library and see if you can actually do useful things with it. If the use 
> cases are compelling and require native browser support to be performant 
> enough, perhaps it could go into a future version of HTML.

A JS library attempting to do this would definitely be helpful in 
determining how much need there is for this.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 20 July 2009 15:59:12 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:14 UTC