pt.cut: pt.cut

Description Usage Arguments Value See Also Examples

View source: R/pt.R

Description

Cut the specified interval from the PitchTier and preserve time

Usage

1
pt.cut(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.cut0, tg.cut, tg.cut0, pt.read, pt.plot, pt.Hz2ST, pt.interpolate, pt.legendre, pt.legendreSynth, pt.legendreDemo

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
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)

rPraat documentation built on Dec. 9, 2018, 1:04 a.m.