formant.cut {rPraat}R Documentation

formant.cut

Description

Cut the specified interval from the Formant object and preserve time

Usage

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

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)

[Package rPraat version 1.3.2-1 Index]