Skip to contents

Create a new empty TextGrid with specified tiers

Usage

textgrid_create(tmin, tmax, tier_names = "", point_tiers = "")

Arguments

tmin

Start time in seconds

tmax

End time in seconds

tier_names

Space-separated tier names (e.g., "phones words syllables")

point_tiers

Space-separated names of tiers that should be PointTiers (default: all are IntervalTiers)

Value

A TextGrid object.

Examples

# Create TextGrid with 3 interval tiers
tg <- textgrid_create(0, 10, "phones words syllables")

# Create TextGrid with mixed tier types
tg2 <- textgrid_create(0, 10, "phones tones", "tones")  # tones is PointTier