formant.cut: formant.cut

Description Usage Arguments Value See Also Examples

View source: R/formant.R

Description

Cut the specified interval from the Formant object and preserve time

Usage

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

Arguments

formant

Formant object (either in Frame or Array format)

tStart

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

tEnd

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

Value

Formant object

See Also

formant.cut0, tg.cut, tg.cut0, formant.read, formant.plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
formant <- formant.sample()
formant2 <-   formant.cut(formant,  tStart = 3)
formant2_0 <- formant.cut0(formant, tStart = 3)
formant3 <-   formant.cut(formant,  tStart = 2, tEnd = 3)
formant3_0 <- formant.cut0(formant, tStart = 2, tEnd = 3)
formant4 <-   formant.cut(formant,  tEnd = 1)
formant4_0 <- formant.cut0(formant, tEnd = 1)
formant5 <-   formant.cut(formant,  tStart = -1, tEnd = 1)
formant5_0 <- formant.cut0(formant, tStart = -1, tEnd = 1)
## Not run: 
formant.plot(formant)
formant.plot(formant2)
formant.plot(formant2_0)
formant.plot(formant3)
formant.plot(formant3_0)
formant.plot(formant4)
formant.plot(formant4_0)
formant.plot(formant5)
formant.plot(formant5_0)

## End(Not run)

rPraat documentation built on Feb. 28, 2021, 1:06 a.m.