Java translation of SoundTouch