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