See suggested algorithm at: http://sites.music.columbia.edu/cmc/music-dsp/musicdspFAQ.html#ringmod Or may be able to use resampler code from Oboe.