pitch.getPointIndexNearestTime {rPraat}R Documentation

pitch.getPointIndexNearestTime

Description

Returns index of frame which is nearest the given time (from both sides).

Usage

pitch.getPointIndexNearestTime(pitch, time)

Arguments

pitch

Pitch object

time

time which is going to be found in frames

Value

integer

See Also

pitch.getPointIndexLowerThanTime, pitch.getPointIndexHigherThanTime

Examples

pitch <- pitch.sample()
pitch.getPointIndexNearestTime(pitch, 0.5)

[Package rPraat version 1.3.2-1 Index]