I haven't been able to find a BSD style licensed high quality polyphase resampling library. Which is what you need if you want to efficiently change pitch on the fly.
This library exist, the author Aleksey Vaneev is basically a DSP greek semi-god.
https://github.com/avaneev/r8brain-free-src By the same author: https://github.com/avaneev/avir
