Closed djvill closed 2 years ago
Can you include a listing of Target.segment.start
and Target.segment.end
in both results
and formants_GUI
?
Yup! They're equal:
all.equal(results$Target.segment.start, formants_GUI$Target.segment.start)
# [1] TRUE
all.equal(results$Target.segment.end, formants_GUI$Target.segment.end)
# [1] TRUE
results$Target.segment.start
# [1] 3.530 3.070 2.780 2.250 3.963 9.920 3.300
# [8] 7.750 2.210 2.550 3.860 4.050 2.600 10.130
# [15] 3.110 4.540 1.190 3.300 4.290 5.620 8.620
# [22] 12.020 6.580 1.700 16.450 6.620 16.000 2.970
results$Target.segment.end
# [1] 3.650 3.220 2.810 2.300 3.993 9.980 3.340
# [8] 7.780 2.290 2.580 3.890 4.090 2.670 10.190
# [15] 3.140 4.630 1.280 3.340 4.380 5.750 8.670
# [22] 12.060 6.620 1.750 16.480 6.680 16.030 3.000
formants_GUI$Target.segment.start
# [1] 3.530 3.070 2.780 2.250 3.963 9.920 3.300
# [8] 7.750 2.210 2.550 3.860 4.050 2.600 10.130
# [15] 3.110 4.540 1.190 3.300 4.290 5.620 8.620
# [22] 12.020 6.580 1.700 16.450 6.620 16.000 2.970
formants_GUI$Target.segment.end
# [1] 3.650 3.220 2.810 2.300 3.993 9.980 3.340
# [8] 7.780 2.290 2.580 3.890 4.090 2.670 10.190
# [15] 3.140 4.630 1.280 3.340 4.380 5.750 8.670
# [22] 12.060 6.620 1.750 16.480 6.680 16.030 3.000
Thanks. The correct midpoint is the one processWithPraat()
- e.g. the midpoint between 3.530 and 3.650 is ( 3.530 + ((3.650−3.530)÷2) = ) 3.59 which is what your formants_R
dataframe has.
So I'll have a look at what's going on in the GUI...
Just trying to reproduce this, it looks like formants_GUI$time_0.5
is the midpoint of the word rather than the segment.
You would get this if you selected the word start/end columns in the GUI:
...instead of the segment start/end columns:
🤦♂️
I noticed that
processWithPraat()
returns different values than LaBB-CAT's GUI upload > process with praat page. I've tested it with formants and pitch. The formants output shows thatprocessWithPraat()
is picking out a different midpoint than the GUI:Unfortunately, the offset isn't consistent: