BuiltWord

class BuiltWord(val text: String, val time: Double, val duration: Double, val isBackground: Boolean, val explicit: Boolean, val isLineSynced: Boolean, val isRtl: Boolean, val isLongWord: Boolean, val letters: List<String>?, val wrapChunks: List<String>?, val wobbles: Boolean) : TimedPart(source)

One timed word, upstream's PartData without its elements. Times in seconds.

Constructors

Link copied to clipboard
constructor(text: String, time: Double, duration: Double, isBackground: Boolean, explicit: Boolean, isLineSynced: Boolean, isRtl: Boolean, isLongWord: Boolean, letters: List<String>?, wrapChunks: List<String>?, wobbles: Boolean)

Properties

Link copied to clipboard
open override val duration: Double

How long it lasts, in seconds.

Link copied to clipboard

Whether the provider marks it explicit.

Link copied to clipboard

Whether it belongs to the background vocals.

Link copied to clipboard

A word with no duration of its own, from a line synced line: it fades in rather than sweeps.

Link copied to clipboard

Held longer than blyrics-long-word-threshold, which themes style differently.

Link copied to clipboard

Whether its script is written right to left.

Link copied to clipboard

The word's graphemes, when its letters wave and sweep one at a time. Null otherwise.

Link copied to clipboard

The word's text, with the space after it when the line has one.

Link copied to clipboard
open override val time: Double

When it starts, in seconds of lyric time.

Link copied to clipboard

Only a word's first syllable carries its group, so a word split into syllables wobbles once, whole.

Link copied to clipboard

Where a word too long to fit may wrap: its text in chunks of blyrics-long-word-wrap-threshold. Null when it is short enough, lettered, or in a joining script, which must not be split.