[music-dsp] Preserving gain in granular time stretching.

Mark Pauley pauley at unsaturated.net
Fri Jul 16 18:14:02 EDT 2010

I have done this by dividing the current amplitude window value of the current grain for the current sample by the sum amplitude window value of all grains.

I then multiply the current sample value of the current grain by this value if the sum amplitude window value of all grains is greater than your max amplitude value ( say 1.0 ). Otherwise, I just use the window value as normal.

On Jul 16, 2010, at 2:51 PM, Batuhan Bozkurt wrote:

> Hi all,
> I have a granular time stretcher with settings on grain size and number of grains per second. What would be the practical way to stay faithful to the original gain of the sample? When there are many grains playing at the same time I sometimes overload the bus and I want to avoid it.
> Best,
> Batuhan Bozkurt
> /* http://www.earslap.com */
> --
> dupswapdrop -- the music-dsp mailing list and website:
> subscription info, FAQ, source code archive, list archive, book reviews, dsp links
> http://music.columbia.edu/cmc/music-dsp
> http://music.columbia.edu/mailman/listinfo/music-dsp

More information about the music-dsp mailing list