Lyric
data class Lyric(var startTimeMs: Double, var words: String, var durationMs: Double, var key: String? = null, var parts: MutableList<LyricPart>? = null, var agent: String? = null, var translations: MutableMap<String, String>? = null, var translation: LyricTranslation? = null, var romanization: String? = null, var timedRomanization: MutableList<LyricPart>? = null, var isInstrumental: Boolean? = null)(source)
One line of lyrics, as the parsers produce it and buildLyrics takes it.
Constructors
Link copied to clipboard
constructor(startTimeMs: Double, words: String, durationMs: Double, key: String? = null, parts: MutableList<LyricPart>? = null, agent: String? = null, translations: MutableMap<String, String>? = null, translation: LyricTranslation? = null, romanization: String? = null, timedRomanization: MutableList<LyricPart>? = null, isInstrumental: Boolean? = null)
Properties
Link copied to clipboard
How long the line lasts, in milliseconds. 0 for lyrics without timing.
Link copied to clipboard
Whether the line stands for a break without singing (an intro, a solo).
Link copied to clipboard
The line's timed pieces, for word or syllable synced lyrics. Null when only the line is timed.
Link copied to clipboard
The line in Latin script, for lyrics in another script.
Link copied to clipboard
When the line starts, in milliseconds from the start of the song.
Link copied to clipboard
The romanization with its own timing, piece for piece.
Link copied to clipboard
The older single translation. Read translations first.
Link copied to clipboard
Translations of the line, by language tag.