Algorithms JUCE uses for mixing and resampling


#1

Hi Jules,
I want to know what the algorithm you use for Mixing and resampling. Do you use standard algorithm or you have written your own algorithm or the enhancement of the standard algorithms. And can you give me the advantages and drawbacks of the algorithm.

Thanks
Godwin


#2

For mixing…? I use the “add” operator!

For resampling, it’s a bog-standard interpolator with a low-pass anti-aliasing filter. There are better, much more complicated ways to resample, and this isn’t perfect, but it’s a simple, quick algorithm that gives a decent result.


#3

If you want a careful resampler, look into libsamplerate at http://www.mega-nerd.com/SRC

stp