pitch.cut: pitch.cut

Description Usage Arguments Value See Also Examples

View source: R/pitch.R

Description

Cut the specified interval from the Pitch object and preserve time

Usage

1
pitch.cut(pitch, tStart = -Inf, tEnd = Inf)

Arguments

pitch

Pitch object (either in Frame or Array format)

tStart

beginning time of interval to be cut (default -Inf = cut from the xmin of the Pitch)

tEnd

final time of interval to be cut (default Inf = cut to the xmax of the Pitch)

Value

Pitch object

See Also

pitch.cut0, tg.cut, tg.cut0, pitch.read, pitch.plot

Examples

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

## End(Not run)

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