formant.read: formant.read

Description Usage Arguments Value See Also Examples

View source: R/formant.R

Description

Reads Formant object from Praat. Supported formats: text file, short text file.

Usage

1
formant.read(fileNameFormant, encoding = "UTF-8")

Arguments

fileNameFormant

file name of Formant object

encoding

File encoding (default: "UTF-8"), "auto" for auto-detect of Unicode encoding

Value

A Formant object represents formants as a function of time.

[ref: Praat help, http://www.fon.hum.uva.nl/praat/manual/Formant.html]

f$xmin ... start time (seconds)

f$xmax ... end time (seconds)

f$nx ... number of frames

f$dx ... time step = frame duration (seconds)

f$x1 ... time associated with the first frame (seconds)

f$t ... vector of time instances associated with all frames

f$maxnFormants ... maximum number of formants in frame

f$frame[[1]] to f$frame[[f$nx]] ... frames

f$frame[[1]]$intensity ... intensity of the frame

f$frame[[1]]$nFormants ... actual number of formants in this frame

f$frame[[1]]$frequency ... vector of formant frequencies (in Hz)

f$frame[[1]]$bandwidth ... vector of formant bandwidths (in Hz)

See Also

pitch.read, pt.read, tg.read, it.read, col.read

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
f <- formant.read('demo/maminka.Formant')
names(f)
f$nx
f$t[4]        # time instance of the 4th frame
f$frame[[4]]  # 4th frame: formants
f$frame[[4]]$frequency[2]
f$frame[[4]]$bandwidth[2]

## End(Not run)

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