Latency "trick ?" in Pitch Transposition algo.

Algorithm development and general DSP issues

Moderator: frank

Serhat18
Posts: 23
Joined: Mon Sep 29, 2025 6:41 am

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

Post by Serhat18 »

Could you please write an example code for a pitch shifter to prevent delay?
igorp
Posts: 69
Joined: Tue May 19, 2015 6:10 am
Location: RU

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

Post 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
Post Reply