"""Define lyrics to be sung, spoken or written"""frommutwoimportmusic_parametersfrom.text_based_lyricsimport*__all__=("DirectLyric",)+text_based_lyrics.__all__deltext_based_lyrics
[docs]classDirectLyric(music_parameters.abc.Lyric):"""Lyric which is directly initialised by its phonetic representation :param phonetic_representation: The phonetic representation of the text. :type phonetic_representation: str In this class the `written_representation` is simply equal to `phonetic_representation`. """def__init__(self,phonetic_representation:str):self.phonetic_representation=phonetic_representation@propertydefphonetic_representation(self)->str:returnself._phonetic_representation@phonetic_representation.setterdefphonetic_representation(self,phonetic_representation:str):self._phonetic_representation=phonetic_representation@propertydefwritten_representation(self)->str:returnself.phonetic_representation