Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formula for converting PitchTier to Point Process #2275

Open
tshmak opened this issue Nov 25, 2022 · 2 comments
Open

Formula for converting PitchTier to Point Process #2275

tshmak opened this issue Nov 25, 2022 · 2 comments

Comments

@tshmak
Copy link

tshmak commented Nov 25, 2022

Hi,

I am trying to understand the maths behind Praat. Would you be able to explain where the algorithm here comes from?

Many thanks!

Tim

@PaulBoersma
Copy link
Member

That's the algorithm to determine where the next time point should come when we convert a pitch tier to a series of time points. A naive algorithm would be: if the latest point is at time t, and the current pitch is f, then the next point should be at time t' = t+1/f. This is incorrect, because the pitch may have changed between these two times. The correct algorithm should be such that the area under the pitch curve between t and t' is exactly 1. This means that if the pitch changes linearly from f to f' (between t and t'), t' and its accompanying f' should be chosen in such a way that (t' - t) times 0.5*(f+f') equals 1, where the last expression means the average pitch between t and t'. The area under the linear curve is a quadratic function of t' (the definite integral of the pitch curve from t to t'). hence those "slope" (the slope of the pitch curve) and "discriminant" (the discriminant of the solution of a quadratic equation).

Does that help, or do you want to see the derivation of the precise solution as well?

@tshmak
Copy link
Author

tshmak commented Jan 26, 2023

Wow, thanks very much. I think I understand now. That's very helpful of you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants