Source code for mutwo.music_parameters.notation_indicators
"""Define notation indicators for simple events.This submodules provides several classes to express notationspecifications for :class:`mutwo.core_events.SimpleEvent` objects.They mostly derive from traditional Western notation.Unlike indicators of the :mod:`mutwo.music_parameters.notation_indicators`module, notation indicators shouldn't have an effect on the played musicand are merely specifications of representation. The proper way to handlenotation indicators should be via a :class:`NotationIndicatorCollection`object that should be attached to the respective :class:`SimpleEvent`.The collection contains all possible notation indicators which are definedin this module. :class:`mutwo.music_events.NoteLike` contain by defaulta notation indicator collection.Notation indicators have one or more arguments. Their :attr:`is_active`attribute can't be set by the user and get automatically initialised dependingon if all necessary attributes are defined (then active) or if any of thenecessary attributes is set to :obj:`None` (then not active).**Example:**Set notation indicators of :class:`NoteLike`:>>> from mutwo.events import music_events>>> my_note = music_events.NoteLike('c', 1 / 4, 'mf')>>> my_note.notation_indicator_collection.margin_markup.content = "Violin""""importdataclassesimportinspectimporttypingfrommutwoimportmusic_parameters
# Dynamically define __all__ in order to catch all PlayingIndicator classes__all__=tuple(nameforname,clsinglobals().items()ifinspect.isclass(cls)andmusic_parameters.abc.NotationIndicatorininspect.getmro(cls))+("NotationIndicatorCollection",)