Page 2 of 2

Re: Latency "trick ?" in Pitch Transposition algo.

Posted: Thu Apr 02, 2026 12:36 am
by Serhat18
Could you please write an example code for a pitch shifter to prevent delay?

Re: Latency "trick ?" in Pitch Transposition algo.

Posted: Mon Jul 13, 2026 6:25 am
by igorp
It's not a trick if you using both read pointers and x-fade between them.

or you can write crossfade code yourself, or do not use crossfades at all if your code contain later reverb.
Crossfades needed for blind looping end of buffer with start of buffer.
If start and end of the buffer has much differnce, than this provides hard click, which is hided by crossfade.

I wrote the "clickless" octave down for stm32 engine based on fv-1 principles. It having 256 samples pre-buffer and custom crossfade. Last 256 samples of 4K buffer is blending with prebuffer , so signal contain no volume breaks, except volume of original signal.

If i'll have a more time , will re-write it to FV-1