Calculating the delay/latency of a pitch shifted signal

Algorithm development and general DSP issues

Moderator: frank

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

Calculating the delay/latency of a pitch shifted signal

Post by knutolai » Mon Mar 27, 2017 8:44 am

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: 991
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Post by frank » Mon Mar 27, 2017 2:26 pm

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: 33
Joined: Wed Nov 23, 2016 8:43 am
Location: Bergen, Norway

Post by knutolai » Tue Mar 28, 2017 2:20 am

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