powered by
Returns index of point which is nearest the given time (from both sides).
time
pt.getPointIndexNearestTime(pt, time)
PitchTier object
time which is going to be found in points
integer
pt.getPointIndexLowerThanTime, pt.getPointIndexHigherThanTime
pt.getPointIndexLowerThanTime
pt.getPointIndexHigherThanTime
# NOT RUN { pt <- pt.sample() pt.getPointIndexNearestTime(pt, 0.5) # }
Run the code above in your browser using DataLab