I was wondering whether some can help me with a tricky thing which is extracting times and frequency of a Praat Pitch contour to a txt file.
I start from
File type = "ooTextFile"
Object class = "Pitch 1"
xmin = 0
xmax = 1.592
nx = 159
dx = 0.01
x1 = 0.006002267573695814
ceiling = 1900
maxnCandidates = 2
frame []:
frame [1]:
intensity = 0
nCandidates = 1
candidate []:
candidate [1]:
frequency = 0
strength = 0.9
frame [2]:
intensity = 0
nCandidates = 1
candidate []:
candidate [1]:
frequency = 0
strength = 0.9
frame [3]:
intensity = 0
nCandidates = 1
candidate []:
candidate [1]:
frequency = 763.0480724135344
strength = 0.9
frame [4]:
intensity = 0
nCandidates = 1
candidate []:
candidate [1]:
frequency = 763.3612753914916
strength = 0.9
....
and I would like to go to:
0,0
t1,0
t2,763.0480724135344
t3,763.3612753914916
....
tn, ...
It would also be great if the script could read the information in "dx =" and compute times for the x coordinates.
Thanks in advance for your help.