def _get_lilypond_format_bundle(self, component=None): from abjad.tools import systemtools lilypond_format_bundle = systemtools.LilyPondFormatBundle() lilypond_format_bundle.opening.commands.append(str(self)) return lilypond_format_bundle
def _get_lilypond_format_bundle(self, component=None): from abjad.tools import systemtools lilypond_format_bundle = systemtools.LilyPondFormatBundle() format_slot = lilypond_format_bundle.get(self.format_slot) format_slot.commands.append(self._lilypond_format) return lilypond_format_bundle
def _get_lilypond_format_bundle(self, component=None): from abjad.tools import systemtools lilypond_format_bundle = systemtools.LilyPondFormatBundle() lilypond_format_bundle.right.articulations.append(str(self)) return lilypond_format_bundle
def _get_lilypond_format_bundle(self, component=None): from abjad.tools import systemtools lilypond_format_bundle = systemtools.LilyPondFormatBundle() string = '\n'.join(self.format_pieces) lilypond_format_bundle.context_settings.append(string) return lilypond_format_bundle
def _get_lilypond_format_bundle(self, leaf): from abjad.tools import systemtools self._format_time_test(leaf) lilypond_format_bundle = systemtools.LilyPondFormatBundle() if self._is_my_first_leaf(leaf): contributions = override(self)._list_format_contributions( 'override', is_once=False, ) lilypond_format_bundle.grob_overrides.extend(contributions) if self._is_my_last_leaf(leaf): contributions = override(self)._list_format_contributions( 'revert', ) lilypond_format_bundle.grob_reverts.extend(contributions) direction_string = '' if self.direction is not None: direction_string = \ stringtools.expr_to_tridirectional_lilypond_symbol( self.direction) direction_string = '{} '.format(direction_string) if (self._is_my_first_leaf(leaf) and (self.start_dynamic and self.start_dynamic.name == 'niente' or self.stop_dynamic and self.stop_dynamic.name == 'niente')): override(leaf).hairpin.circled_tip = True if self.include_rests: if self._is_my_first_leaf(leaf): string = r'{}\{}'.format(direction_string, self.shape_string) lilypond_format_bundle.right.spanner_starts.append(string) if (self.start_dynamic and not self.start_dynamic.name == 'niente'): string = r'{}\{}'.format( direction_string, self.start_dynamic.name, ) lilypond_format_bundle.right.spanner_starts.append( string) if self._is_my_last_leaf(leaf): if (self.stop_dynamic and not self.stop_dynamic.name == 'niente'): string = r'{}\{}'.format( direction_string, self.stop_dynamic.name, ) lilypond_format_bundle.right.spanner_stops.append( string) else: effective_dynamic = leaf._get_effective( indicatortools.Dynamic) if effective_dynamic is None or \ effective_dynamic.name == 'niente': string = r'\!' lilypond_format_bundle.right.spanner_stops.append( string) elif effective_dynamic not in leaf._indicator_expressions: found_match = False for indicator in \ leaf._get_indicators(indicatortools.Dynamic): if indicator == effective_dynamic: found_match = True if not found_match: string = r'\!' lilypond_format_bundle.right.spanner_stops.append( string) else: if self._is_my_first(leaf, (scoretools.Chord, scoretools.Note)): string = r'{}\{}'.format( direction_string, self.shape_string, ) lilypond_format_bundle.right.spanner_starts.append(string) if (self.start_dynamic and not self.start_dynamic.name == 'niente'): string = r'{}\{}'.format( direction_string, self.start_dynamic.name, ) lilypond_format_bundle.right.spanner_starts.append( string) if self._is_my_last(leaf, (scoretools.Chord, scoretools.Note)): if (self.stop_dynamic and not self.stop_dynamic.name == 'niente'): string = r'{}\{}'.format( direction_string, self.stop_dynamic.name, ) lilypond_format_bundle.right.spanner_stops.append( string) else: effective_dynamic = leaf._get_effective( indicatortools.Dynamic) if effective_dynamic is None or \ effective_dynamic.name == 'niente': string = r'\!' lilypond_format_bundle.right.spanner_stops.append( string) elif effective_dynamic not in leaf._indicator_expressions: found_match = False for indicator in \ leaf._get_indicators(indicatortools.Dynamic): if indicator == effective_dynamic: found_match = True if not found_match: string = r'\!' lilypond_format_bundle.right.spanner_stops.append( string) if self._is_my_only_leaf(leaf): lilypond_format_bundle.right.spanner_starts.extend( lilypond_format_bundle.right.spanner_stops) lilypond_format_bundle.right.spanner_stops[:] = [] return lilypond_format_bundle
def _lilypond_format_bundle(self): from abjad.tools import systemtools lilypond_format_bundle = systemtools.LilyPondFormatBundle() lilypond_format_bundle.before.commands.append(str(self)) return lilypond_format_bundle
def _lilypond_format_bundle(self): from abjad.tools import systemtools lilypond_format_bundle = systemtools.LilyPondFormatBundle() format_slot = lilypond_format_bundle.get(self.format_slot) format_slot.comments.append(str(self)) return lilypond_format_bundle
def _lilypond_format_bundle(self): from abjad.tools import systemtools lilypond_format_bundle = systemtools.LilyPondFormatBundle() lilypond_format_bundle.right.stem_tremolos.append(str(self)) return lilypond_format_bundle