Page 1 of 1

Calculating the delay/latency of a pitch shifted signal

Posted: Mon Mar 27, 2017 8:44 am
by knutolai
I'm toying around with the +/- 1 octave program (AN0001-4.spn) from the AN0001 appnote:
http://www.spinsemi.com/Products/appnot ... N-0001.pdf

I've noticed that the delay/latency of the pitch shifted signal somehow depends on the amount of pitch shift.

How would I calculate the amount of latency as a function of the amount of pitch shift?

The reason I ask is that I wish to apply an equal amount of latency to the "clean" audio.

Posted: Mon Mar 27, 2017 2:26 pm
by frank
There are pointers that circulate about the delay buffer used for the pitch shifting and these pointers are always in motion so there is no fixed latency you can calculate to apply to the dry signal.

Posted: Tue Mar 28, 2017 2:20 am
by knutolai
Oh yeah that makes sense.

I decided to add a compensation delay half the length (2048) of the pitch buffer. It's not perfect, but it helps reduce / even out the latency. Sounds better for my application.

Thank you for the input! :)