This is an alternative implementation of PitchShiftPA, separating the write and read/synthesis stages, allowing for a more flexible use e.g. with real-time triggering. Use together with PitchShiftPARd.
See PitchShiftPA for more information about the algorithm, the implementation, and use cases.
in |
The monophonic (single-voice) input signal. |
bufnum |
A circular buffer to be used by the proces. NOTE: PitchShiftPARd uses GrainBuf for reading the buffer and thus is limited to single-channel buffers.
A buffer of the duration of approx. 1s should be enough for most uses; use larger buffer for lower frequencies or higher formant ratio. Required buffer size depends on the lowest processed frequency and highest requested formant ratio during re-synthesis. |
phase in the buffer (audio rate!)
See PitchShiftPARd for examples.