Re: [whatwg] Audio canvas?

2008-12-25 Thread Ian Hickson
On Wed, 16 Jul 2008, Dr. Markus Walther wrote: I have noted an asymmetry between canvas and audio: canvas supports loading of ready-made images _and_ pixel manipulation (get/putImageData). audio supports loading of ready-made audio but _not_ sample manipulation. [...] Question: What

Re: [whatwg] Audio canvas?

2008-07-24 Thread Dr. Markus Walther
I think an interesting approach for an audio canvas would be to allow you to both manipulate audio data directly (through a getSampleData/putSampleData type interface), but also build up an audio filter graph, both with some predefined filters/generators and with the ability to do filters in

Re: [whatwg] Audio canvas?

2008-07-24 Thread Fabien Meghazi
I entirely agree. In my own proposal sofar I only mentioned simple time-domain ops (cut/add silence/fade) as filters - what would be the filters/generators on your wishlist? Some of those : http://en.wikipedia.org/wiki/Fast_Tracker#Effects So we'll be able to implement a web based tracker.

Re: [whatwg] Audio canvas?

2008-07-23 Thread Vladimir Vukicevic
On Jul 16, 2008, at 11:25 AM, Dave Singer wrote: At 20:18 +0200 16/07/08, Dr. Markus Walther wrote: get/setSample(samplePoint t, sampleValue v, channel c). For the sketched use case - in-browser audio editor -, functions on sample regions from {cut/add silence/amplify/fade} would be nice

Re: [whatwg] Audio canvas?

2008-07-17 Thread Dr. Markus Walther
://www.speech.kth.se/snack/man/snack2.2/tcl-man.html) can serve as inspiration already. A carefully chosen subset of Snack might be a good start. David - Original Message - From: Dave Singer [EMAIL PROTECTED] To: whatwg@lists.whatwg.org Sent: Wednesday, July 16, 2008 2:25 PM Subject: Re: [whatwg] Audio

[whatwg] Audio canvas?

2008-07-16 Thread Dr. Markus Walther
I have noted an asymmetry between canvas and audio: canvas supports loading of ready-made images _and_ pixel manipulation (get/putImageData). audio supports loading of ready-made audio but _not_ sample manipulation. With browser JavaScript getting faster all the time (Squirrelfish...),

Re: [whatwg] Audio canvas?

2008-07-16 Thread Oliver Hunt
Question: What do people think about making audio more like canvas as sketched above? I don't believe it would be appropriate for the audio tag to take on such an API. My reason is that canvas is very different from other elements -- it doesn't actually support any form of image loading

Re: [whatwg] Audio canvas?

2008-07-16 Thread Fabien Meghazi
On Wed, Jul 16, 2008 at 1:10 PM, Oliver Hunt [EMAIL PROTECTED] wrote: Question: What do people think about making audio more like canvas as sketched above? Well I guess it would be cool for writing canvas games, and necessary if support for microphone or webcam is added in html in the future.

Re: [whatwg] Audio canvas?

2008-07-16 Thread Oliver Hunt
On Jul 16, 2008, at 4:39 AM, Fabien Meghazi wrote: On Wed, Jul 16, 2008 at 1:10 PM, Oliver Hunt [EMAIL PROTECTED] wrote: Question: What do people think about making audio more like canvas as sketched above? Well I guess it would be cool for writing canvas games, and necessary if support

Re: [whatwg] Audio canvas?

2008-07-16 Thread Fabien Meghazi
I should note that i am not necessarily against the idea of an audio equivalent of the canvas element, i just don't believe such an API should be part of the audio element. Do you mean adding audio facilities as described by Markus into the canvas API ? If yes, I totally agree. -- Fabien

Re: [whatwg] Audio canvas?

2008-07-16 Thread Oliver Hunt
On Jul 16, 2008, at 5:00 AM, Fabien Meghazi wrote: I should note that i am not necessarily against the idea of an audio equivalent of the canvas element, i just don't believe such an API should be part of the audio element. Do you mean adding audio facilities as described by Markus into

Re: [whatwg] Audio canvas?

2008-07-16 Thread Mathieu HENRI
Dr. Markus Walther wrote: I have noted an asymmetry between canvas and audio: canvas supports loading of ready-made images _and_ pixel manipulation (get/putImageData). audio supports loading of ready-made audio but _not_ sample manipulation. With browser JavaScript getting faster all the

Re: [whatwg] Audio canvas?

2008-07-16 Thread Mathieu HENRI
Mathieu HENRI wrote: Dr. Markus Walther wrote: I have noted an asymmetry between canvas and audio: canvas supports loading of ready-made images _and_ pixel manipulation (get/putImageData). audio supports loading of ready-made audio but _not_ sample manipulation. With browser JavaScript

Re: [whatwg] Audio canvas?

2008-07-16 Thread Dr. Markus Walther
My understanding of HTMLMediaElement is that the currentTime, volume and playbackRate properties can be modified live. So in a way Audio is already like Canvas : the developer modify things on the go. There is no automated animations/transitions like in SVG for instance. Doing a cross

Re: [whatwg] Audio canvas?

2008-07-16 Thread Mathieu HENRI
Dr. Markus Walther wrote: My understanding of HTMLMediaElement is that the currentTime, volume and playbackRate properties can be modified live. So in a way Audio is already like Canvas : the developer modify things on the go. There is no automated animations/transitions like in SVG

Re: [whatwg] Audio canvas?

2008-07-16 Thread Dave Singer
As others have pointed out, I think you're asking for a new element, where you can 'draw' audio as well as pre-load it, just like canvas where you can load pictures and also draw them. This is not the audio element, any more than canvas is the img element. It's an interesting idea, but

Re: [whatwg] Audio canvas?

2008-07-16 Thread Dr. Markus Walther
Thanks for all the feedback sofar! Dave Singer wrote: As others have pointed out, I think you're asking for a new element, where you can 'draw' audio as well as pre-load it, just like canvas where you can load pictures and also draw them. This is not the audio element, any more than canvas

Re: [whatwg] Audio canvas?

2008-07-16 Thread Dave Singer
At 20:18 +0200 16/07/08, Dr. Markus Walther wrote: get/setSample(samplePoint t, sampleValue v, channel c). For the sketched use case - in-browser audio editor -, functions on sample regions from {cut/add silence/amplify/fade} would be nice and were mentioned as an extended possibility, but

Re: [whatwg] Audio canvas?

2008-07-16 Thread ddailey
] Audio canvas? At 20:18 +0200 16/07/08, Dr. Markus Walther wrote: get/setSample(samplePoint t, sampleValue v, channel c). For the sketched use case - in-browser audio editor -, functions on sample regions from {cut/add silence/amplify/fade} would be nice and were mentioned as an extended