def __init__(self, music=None, is_simultaneous=None, name=None): music = music or [] Component.__init__(self, name=name) self._named_children = {} self._is_simultaneous = False self._initialize_music(music) self.is_simultaneous = is_simultaneous
def __init__(self, music=None, is_simultaneous=None, name=None): music = music or [] Component.__init__(self, name=name) self._named_children = {} self._is_simultaneous = False self._initialize_music(music) self.is_simultaneous = is_simultaneous
def __init__(self, written_duration, lilypond_duration_multiplier=None): Component.__init__(self) self._lilypond_duration_multiplier = lilypond_duration_multiplier self._leaf_index = None self.written_duration = durationtools.Duration(written_duration) self.written_pitch_indication_is_nonsemantic = False self.written_pitch_indication_is_at_sounding_pitch = True
def _copy_with_indicators_but_without_children_or_spanners(self): new = Component._copy_with_indicators_but_without_children_or_spanners(self) for grace_container in self._get_grace_containers(): new_grace_container = \ grace_container._copy_with_children_and_indicators_but_without_spanners() attach(new_grace_container, new) return new
def _copy_with_indicators_but_without_children_or_spanners(self): new = Component._copy_with_indicators_but_without_children_or_spanners(self) for grace_container in self._get_grace_containers(): new_grace_container = \ grace_container._copy_with_children_and_indicators_but_without_spanners() attach(new_grace_container, new) return new
def _copy_with_marks_but_without_children_or_spanners(self): new = Component._copy_with_marks_but_without_children_or_spanners(self) for grace_container in self._get_grace_containers(): new_grace_container = \ grace_container._copy_with_children_and_marks_but_without_spanners() new_grace_container(new) return new
def _as_graphviz_node(self): from abjad.tools import documentationtools node = Component._as_graphviz_node(self) node[0].append( documentationtools.GraphvizTableRow([ documentationtools.GraphvizTableCell( label=type(self).__name__, attributes={'border': 0}, ), ])) return node
def _as_graphviz_node(self): from abjad.tools import documentationtools node = Component._as_graphviz_node(self) node[0].append( documentationtools.GraphvizTableRow([ documentationtools.GraphvizTableCell( label=type(self).__name__, attributes={'border': 0}, ), ]) ) return node
def _as_graphviz_node(self): from abjad.tools import documentationtools lilypond_format = self._compact_representation lilypond_format = lilypond_format.replace('<', '<') lilypond_format = lilypond_format.replace('>', '>') node = Component._as_graphviz_node(self) node[0].extend([ documentationtools.GraphvizTableRow([ documentationtools.GraphvizTableCell( label=type(self).__name__, attributes={'border': 0}, ), ]), documentationtools.GraphvizTableHorizontalRule(), documentationtools.GraphvizTableRow([ documentationtools.GraphvizTableCell( label=lilypond_format, attributes={'border': 0}, ), ]), ]) return node
def _as_graphviz_node(self): from abjad.tools import documentationtools lilypond_format = self._compact_representation lilypond_format = lilypond_format.replace('<', '<') lilypond_format = lilypond_format.replace('>', '>') node = Component._as_graphviz_node(self) node[0].extend([ documentationtools.GraphvizTableRow([ documentationtools.GraphvizTableCell( label=type(self).__name__, attributes={'border': 0}, ), ]), documentationtools.GraphvizTableHorizontalRule(), documentationtools.GraphvizTableRow([ documentationtools.GraphvizTableCell( label=lilypond_format, attributes={'border': 0}, ), ]), ]) return node
def _copy_with_indicators_but_without_children_or_spanners(self): new = Component._copy_with_indicators_but_without_children_or_spanners( self) new.is_simultaneous = self.is_simultaneous return new
def __init__(self, written_duration, name=None): Component.__init__(self, name=name) self._leaf_index = None self.written_duration = durationtools.Duration(written_duration)
def __init__(self, written_duration, name=None): Component.__init__(self, name=name) self._leaf_index = None self.written_duration = durationtools.Duration(written_duration)
def _copy_with_indicators_but_without_children_or_spanners(self): new = Component._copy_with_indicators_but_without_children_or_spanners( self) new.is_simultaneous = self.is_simultaneous return new
def __init__(self, music=None, **kwargs): Component.__init__(self) self._named_children = {} self._simultaneous = False self._initialize_music(music) self._initialize_keyword_values(**kwargs)