示例#1
0
 def _get_lilypond_format_bundle(self, leaf):
     from abjad.tools import lilypondnametools
     from abjad.tools import schemetools
     lilypond_format_bundle = self._get_basic_lilypond_format_bundle(leaf)
     if self._is_my_only_leaf(leaf):
         style = schemetools.SchemeSymbol(self.style)
         context_setting = lilypondnametools.LilyPondContextSetting(
             context_name='Staff',
             context_property='pedalSustainStyle',
             value=style,
             )
         lilypond_format_bundle.update(context_setting)
         string = self._kinds[self.kind][0]
         lilypond_format_bundle.right.spanner_starts.append(string)
         string = self._kinds[self.kind][1]
         lilypond_format_bundle.right.spanner_starts.append(string)
     elif self._is_my_first_leaf(leaf):
         style = schemetools.SchemeSymbol(self.style)
         context_setting = lilypondnametools.LilyPondContextSetting(
             context_name='Staff',
             context_property='pedalSustainStyle',
             value=style,
             )
         lilypond_format_bundle.update(context_setting)
         string = self._kinds[self.kind][0]
         lilypond_format_bundle.right.spanner_starts.append(string)
     elif self._is_my_last_leaf(leaf):
         string = self._kinds[self.kind][1]
         lilypond_format_bundle.right.spanner_stops.append(string)
     return lilypond_format_bundle
示例#2
0
 def _make_pizzicato_overrides(
     self,
     lilypond_format_bundle=None,
 ):
     style = schemetools.SchemeSymbol('cross')
     override_ = lilypondnametools.LilyPondGrobOverride(
         grob_name='NoteHead',
         is_once=True,
         property_path='style',
         value=style,
     )
     string = override_.override_string
     lilypond_format_bundle.grob_overrides.append(string)
示例#3
0
 def _make_glissando_overrides(
     self,
     bow_motion_technique=None,
     lilypond_format_bundle=None,
 ):
     if bow_motion_technique is not None:
         style = schemetools.SchemeSymbol(
             bow_motion_technique.glissando_style, )
         override_ = lilypondnametools.LilyPondGrobOverride(
             grob_name='Glissando',
             is_once=True,
             property_path='style',
             value=style,
         )
         string = override_.override_string
         lilypond_format_bundle.grob_overrides.append(string)