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

[whatwg] Audio canvas?

From: Dave Singer <singer@apple.com>
Date: Wed, 16 Jul 2008 11:25:15 -0700
Message-ID: <p06240831c4a3eca734b4@[]>
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 that is optional.
>I don't understand the reference to MIDI, because my use case has no 
>connection to musical notes, it's about arbitrary audio data on 
>which MIDI has nothing to say.

get/set sample are 'drawing primitives' that are the equivalent of 
get/setting a single pixel in images.  Yes, you can draw anything a 
pixel at a time, but it's mighty tedious.  You might want to lay down 
a tone, or some noise, or shape the sound with an envelope, or do a 
whole host of other operations at a higher level than 
sample-by-sample, just as canvas supports drawing lines, shapes, and 
so on.  That's all I meant by the reference to MIDI.
David Singer
Received on Wednesday, 16 July 2008 11:25:15 UTC

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