LyricSection

LyricSection(
    section_type: str | None = None,
    section_number: int | None = None,
    section_name: str | None = None,
    language: str | None = None,
)

A verse, chorus, refrain, …: a Spanner over a line of LyricSyllables (STARTS_AT the first, ENDS_AT the last), carrying what is true of the whole text rather than of any one syllable.

section_name defaults to “ ” when a type is given:

>>> LyricSection(section_type="verse", section_number=2).section_name
'verse 2'
>>> LyricSection(section_type="refrain").section_name
'refrain'
>>> LyricSection().section_name is None
True

Attributes

Name Description
meta
id
section_type
section_number
section_name
language