pyampact.symbolic.lyrics
- pyampact.symbolic.lyrics(piece, strip=True)[source]
Extract the lyrics from the score.
The lyrics are extracted from each part and returned as a pandas DataFrame where each column represents a part and each row represents a lyric. The DataFrame is indexed by the offset of the lyrics.
- Parameters:
strip – Boolean, default True. If True, the method will strip leading and trailing whitespace from the lyrics.
- Returns:
A pandas DataFrame representing the lyrics in the score.
See also