W3C home > Mailing lists > Public > public-audio@w3.org > October to December 2012

Re: start() and grain

From: Gabriel Cardoso <gabriel.cardoso@inria.fr>
Date: Tue, 30 Oct 2012 18:07:37 +0100
Message-ID: <j17l5iavd1hyvwkkvr7qx37q.1351616857347@email.android.com>
To: Peter Nyboer <pete@lividinstruments.com>
Cc: public-audio@w3.org
Hi Peter, 

In the start() method, the two lasts optional parameters allow you to play sub parts of an audio buffer. 

For the pitch, you need to set the playbackRate attribute I think. 

Hope I understand your question and could help a bit, 

Cheers, 

Gabriel

Peter Nyboer <pete@lividinstruments.com> a écrit :

>Coming from a bit out of the loop, so forgive me if there's an obvious answer....
>
>I'm looking at the audio buffer to see if it could be appropriate for a sampler project I have. I'm curious about granular playback for decoupling rate and pitch. In looking at the granular possibilities, I came across this in the mailing list archive:
>
>> As discussed on the 12th September teleconference, the suggestion is to not
>> have a separate method for this, but instead to overload the start() method
>> with extra parameters.
>
>But I'm looking at 
>https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBufferSourceNode
>and I don't see any reference to any parameters in the start() method to do this.
>Any hints?
>
>Peter
>
>
>
>
>
>
>
Received on Tuesday, 30 October 2012 17:08:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:03 UTC