Audio windowing / tapering function

Hello

Raw looping/cropping of audio sometimes creates unwanted clicks in the edges because of drastic shift in the amplitude.

The way to handle this is to apply a tapering function on the audio:

http://en.wikipedia.org/wiki/Window_function

 

There are many types of tapering functions to choose from, does anybody has a recommandation about a function?

A better help will be if someone already impelemnted this module and is ready to share it.

 

I know that AudioSampleBuffer has a applyGainRamp(), but I need a more fine-grained way to do that.

 

Thanks