Last chance! 50% off unlimited learning
Sale ends in
Cut the specified interval from the Pitch object and shift time so that the new xmin
= 0
pitch.cut0(pitch, tStart = -Inf, tEnd = Inf)
Pitch object (either in Frame or Array format)
beginning time of interval to be cut (default -Inf
= cut from the xmin
of the Pitch)
final time of interval to be cut (default Inf
= cut to the xmax
of the Pitch)
Pitch object
# NOT RUN {
pitch <- pitch.sample()
pitch2 <- pitch.cut(pitch, tStart = 3)
pitch2_0 <- pitch.cut0(pitch, tStart = 3)
pitch3 <- pitch.cut(pitch, tStart = 2, tEnd = 3)
pitch3_0 <- pitch.cut0(pitch, tStart = 2, tEnd = 3)
pitch4 <- pitch.cut(pitch, tEnd = 1)
pitch4_0 <- pitch.cut0(pitch, tEnd = 1)
pitch5 <- pitch.cut(pitch, tStart = -1, tEnd = 1)
pitch5_0 <- pitch.cut0(pitch, tStart = -1, tEnd = 1)
# }
# NOT RUN {
pitch.plot(pitch)
pitch.plot(pitch2)
pitch.plot(pitch2_0)
pitch.plot(pitch3)
pitch.plot(pitch3_0)
pitch.plot(pitch4)
pitch.plot(pitch4_0)
pitch.plot(pitch5)
pitch.plot(pitch5_0)
# }
Run the code above in your browser using DataLab