TierGroupMixins

mixins.tiermixins.TierGroupMixins()

Methods and attributes for grouped tiers

Attributes

Name Type Description
[] Indexable and iterable

Methods

Name Description
append Append a new tier to a TierGroup.
concat Horizontally concatenate a tier group.

append

mixins.tiermixins.TierGroupMixins.append(new)

Append a new tier to a TierGroup.

This will add a new tier to a TierGroup

Examples

from aligned_textgrid import TierGroup, SequenceTier, Word, Phone

word_tier = SequenceTier([
    Word((0,10,"the"))
])
phone_tier = SequenceTier([
    Phone((0,5,"DH")),
    Phone((5,10,"AH0"))
])

tier_group = TierGroup([word_tier])
tier_group.append(phone_tier)

Parameters

Name Type Description Default
new TierType A SequenceTier if a TierGroup, or a SequencePointTier if a PointsGroup required

concat

mixins.tiermixins.TierGroupMixins.concat(new)

Horizontally concatenate a tier group.

The two tier groups must have the same number of tiers and the same entry classes. All time values of new will be rightward shifted according to the original TierGroup or PointsGroup.

Parameters

Name Type Description Default
new TierGroupType A TierGroup or PointsGroup to append. required

Reuse

GPLv3