snd.getPointIndexNearestTime {rPraat}R Documentation

snd.getPointIndexNearestTime

Description

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

Usage

snd.getPointIndexNearestTime(snd, time)

Arguments

snd

Sound object

time

time which is going to be found in samples

Value

integer

See Also

snd.getPointIndexLowerThanTime, snd.getPointIndexHigherThanTime

Examples

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

[Package rPraat version 1.3.2-1 Index]