pt.write: pt.write

Description Usage Arguments See Also Examples

View source: R/pt.R

Description

Saves PitchTier to a file (in UTF-8 encoding). pt is a list with $t and $f vectors (of the same length) at least. If there are no $tmin and $tmax values, there are set as min and max of $t vector.

Usage

1
pt.write(pt, fileNamePitchTier, format = "spreadsheet")

Arguments

pt

PitchTier object

fileNamePitchTier

file name to be created

format

Output file format ("short" (short text format), "text" (a.k.a. full text format), "spreadsheet" (default), "headerless" (not recommended, it does not contain tmin and tmax info))

See Also

pt.read, tg.write, pt.Hz2ST, pt.interpolate

Examples

1
2
3
4
5
6
7
## Not run: 
pt <- pt.sample()
pt <- pt.Hz2ST(pt)    #  conversion of Hz to Semitones, reference 0 ST = 100 Hz.
pt.plot(pt)
pt.write(pt, "demo/H_st.PitchTier")

## End(Not run)

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