Submodule lyrics
Manipulate the lyrics
- class mscxyz.lyrics.Lyrics(score: Score)[source]
Bases:
object- elements: list[NumberedLyricsElement]
- property number_of_verses: int
Retrieve the number of verses.
From:
La
La
La
To:
3
- extract_lyrics(number: int | None = None) None[source]
Extract one lyric verse or all lyric verses.
- Parameters:
number – The lyric verse number. 1 is the first verse.
- fix_lyrics_verse(verse_number: int) None[source]
from:
<Lyrics> <text>la-</text> </Lyrics> <Lyrics> <syllabic>end</syllabic> <text>la-</text> </Lyrics> <Lyrics> <text>la.</text> </Lyrics>
to:
<Lyrics> <syllabic>begin</syllabic> <text>la</text> </Lyrics> <Lyrics> <syllabic>middle</syllabic> <text>la</text> </Lyrics> <Lyrics> <syllabic>end</syllabic> <text>la.</text> </Lyrics>