Example #1
0
 def grace(self, music):
     r"""
     Handles LilyPond ``\grace`` command.
     """
     assert isinstance(music, core.Container)
     leaves = music[:]
     music[:] = []
     return core.GraceContainer(leaves)
Example #2
0
 def appoggiatura(self, music):
     r"""
     Handles LilyPond ``\appoggiatura`` command.
     """
     grace = core.GraceContainer(music[:], command=r"\appoggiatura")
     return grace
Example #3
0
 def slashed_grace_container(self, music):
     r"""
     Handles LilyPond ``\slahsedGrace`` command.
     """
     grace = core.GraceContainer(music[:])
     return grace