Alternatively, Praat can interpolate, if you use
Pitch.get_value_at_time
I answered that
Hello, I have written a script to get pitch values for multiple recordings at the same time points.
pitchObject = call(sound, "To Pitch", 0.0, 25, 350) # we create the pitch object that we will query
pitch1 = call(pitchObject, "Get value at time", 0.1, "Hertz", "linear")
But sometimes there are holes in the pitch track and the program reports "nan". Is there a command in the call to get the average pitch/nearest pitch value?
nan
really just means "unvoiced", I think
call(pitchObject, "Get mean at time", 0.05, 0.15, "Hertz")
or so
math.isnan(pitch1)
to check if you got a valid value?