pt.cut0 {rPraat}R Documentation

pt.cut0

Description

Cut the specified interval from the PitchTier and shift time so that the new tmin = 0

Usage

pt.cut0(pt, tStart = -Inf, tEnd = Inf)

Arguments

pt

PitchTier object

tStart

beginning time of interval to be cut (default -Inf = cut from the tmin of the PitchTier)

tEnd

final time of interval to be cut (default Inf = cut to the tmax of the PitchTier)

Value

PitchTier object

See Also

pt.cut, pt.read, pt.plot, pt.Hz2ST, pt.interpolate, pt.legendre, pt.legendreSynth, pt.legendreDemo

Examples

pt <- pt.sample()
pt2 <-   pt.cut(pt,  tStart = 3)
pt2_0 <- pt.cut0(pt, tStart = 3)
pt3 <-   pt.cut(pt,  tStart = 2, tEnd = 3)
pt3_0 <- pt.cut0(pt, tStart = 2, tEnd = 3)
pt4 <-   pt.cut(pt,  tEnd = 1)
pt4_0 <- pt.cut0(pt, tEnd = 1)
pt5 <-   pt.cut(pt,  tStart = -1, tEnd = 1)
pt5_0 <- pt.cut0(pt, tStart = -1, tEnd = 1)
## Not run: 
pt.plot(pt)
pt.plot(pt2)
pt.plot(pt2_0)
pt.plot(pt3)
pt.plot(pt3_0)
pt.plot(pt4)
pt.plot(pt4_0)
pt.plot(pt5)
pt.plot(pt5_0)

## End(Not run)

[Package rPraat version 1.3.2-1 Index]