formants.FormantArray

formants.FormantArray(self, array, time=lambda: np.array([])(), offset=0)

A representation of multiple formant tracks

Parameters

Name Type Description Default
array np.array An array of formant tracks required
time np.array | None The time domain of the formant tracks. Optional. lambda: np.array([])()

Attributes

Name Type Description
rel_time The relative time domain
prop_time The proportional time domain
f[1, 2, 3, …] (np.array Specific formant tracks.

Methods

Name Description
get_slice_at Get a formant slice at some time point.

get_slice_at

formants.FormantArray.get_slice_at(time=None, rel_time=None, prop_time=None)

Get a formant slice at some time point.

One, and only one, of the time arguments (time, rel_time, prop_time) must be specified.

Parameters

Name Type Description Default
time float The absolute time of the slice. Defaults to None. None
rel_time float The relative time of the slice. Defaults to None. None
prop_time float The proportional time of the slice. Defaults to None. None

Returns

Type Description
Slice A formant slice at the specified time.