Class: Textgrid

textgrid~Textgrid()

Class representing a Textgrid.

A Textgrid is a container for annotations of an audio file. Annotations can be split into multiple tiers that might represent different things (different speakers or categories of events, etc).

A Textgrid allows one to compute operations that affect all of the contained tiers.

Constructor

new Textgrid()

Source:

Methods

addTier(tier, tierIndexopt)

Adds a tier to the textgrid. Added to the end, unless an index is specified.
Parameters:
Name Type Attributes Default Description
tier TextgridTier
tierIndex number <optional>
null The index to insert at. If null, add it to the end.
Source:

removeTier(name)

Removes the given tier from this textgrid.
Parameters:
Name Type Description
name string
Source:

renameTier(oldName, newName)

Renames one tier. The new name must not exist in the textgrid already.
Parameters:
Name Type Description
oldName string
newName string
Source:

replaceTier(name, newTier)

Replace the tier with the given name with a new tier
Parameters:
Name Type Description
name string
newTier TextgridTier
Source: