tg.createNewTextGrid: tg.createNewTextGrid

Description Usage Arguments Details Value See Also Examples

View source: R/tg.R

Description

Creates new and empty TextGrid. tMin and tMax specify the total start and end time for the TextGrid. If a new interval tier is added later without specified start and end, they are set to TextGrid start and end.

Usage

1

Arguments

tMin

Start time of TextGrid

tMax

End time of TextGrid

Details

This empty TextGrid cannot be used for almost anything. At least one tier should be inserted using tg.insertNewIntervalTier() or tg.insertNewPointTier().

Value

TextGrid object

See Also

tg.insertNewIntervalTier, tg.insertNewPointTier

Examples

1
2
3
4
tg <- tg.createNewTextGrid(0, 5)
tg <- tg.insertNewIntervalTier(tg, 1, "word")
tg <- tg.insertInterval(tg, "word", 1, 2, "hello")
tg.plot(tg)

bbTomas/rPraat documentation built on Dec. 26, 2021, 2:08 a.m.