Calculating the delay/latency of a pitch shifted signal

Algorithm development and general DSP issues

Moderator: frank

Post Reply
knutolai
Posts: 65
Joined: Wed Nov 23, 2016 9:43 am
Location: Bergen, Norway

Calculating the delay/latency of a pitch shifted signal

Post 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.
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Post 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.
Frank Thomson
Experimental Noize
knutolai
Posts: 65
Joined: Wed Nov 23, 2016 9:43 am
Location: Bergen, Norway

Post 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! :)
Post Reply