Spin Semiconductor Forum Index Spin Semiconductor
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Calculating the delay/latency of a pitch shifted signal

 
Post new topic   Reply to topic    Spin Semiconductor Forum Index -> Algorithm development
View previous topic :: View next topic  
Author Message
knutolai



Joined: 23 Nov 2016
Posts: 29
Location: Bergen, Norway

PostPosted: Mon Mar 27, 2017 7:44 am    Post subject: Calculating the delay/latency of a pitch shifted signal Reply with quote

I'm toying around with the +/- 1 octave program (AN0001-4.spn) from the AN0001 appnote:
http://www.spinsemi.com/Products/appnotes/spn1001/AN-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.
Back to top
View user's profile Send private message
frank



Joined: 19 Oct 2005
Posts: 958

PostPosted: Mon Mar 27, 2017 1:26 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
knutolai



Joined: 23 Nov 2016
Posts: 29
Location: Bergen, Norway

PostPosted: Tue Mar 28, 2017 1:20 am    Post subject: Reply with quote

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! Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Spin Semiconductor Forum Index -> Algorithm development All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group