- From: Patrick Borgeat <patrick.borgeat@gmail.com>
- Date: Tue, 16 Apr 2013 08:57:24 +0200
- To: public-audio@w3.org
- Message-ID: <CALGTrTtQiBgVnDBRaXssrQ+P+t3zW5VuqaHD0hge6nCfZpgPLQ@mail.gmail.com>
Hi Stuart, Joseph, 2013/4/16 Joseph Berkovitz <joe@noteflight.com> > > Perhaps an even simpler (and less performance intensive) way is to > algorithmically pre-generate one or more reasonably long AudioBuffers of > white noise and surface these as audio via one or more > AudioBufferSourceNodes, which can be scheduled with start() and stop(). If > you needed continuous white noise this wouldn't be so good, but since > you're emulating drum sounds it may be a reasonable approach. > I do it that way all the time and pregenerate a globalish noise buffer before anyhting interesting happens. It's quite important to randomize the offset at playback, otherwise the sound of two simultaneously triggered notes using the same noise buffer can correlate. Looping the Noise buffer also helps, if you need longer noise (you don't really hear loops in, say, secondish long white noise samples if you make sure that sounds don't correlate) I use it for some synthesis (HiHats, spooky bells) stuff that way and it works well! cheers, Patrick
Received on Tuesday, 16 April 2013 09:51:25 UTC