Learn R Programming

rPraat (version 1.3.2-1)

snd.getPointIndexNearestTime: 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

Run this code
# NOT RUN {
snd <- snd.sample()
snd.getPointIndexNearestTime(snd, 0.5)
# }

Run the code above in your browser using DataLab