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