def grace(self, music): r""" Handles LilyPond ``\grace`` command. """ assert isinstance(music, core.Container) leaves = music[:] music[:] = [] return core.BeforeGraceContainer(leaves)
def appoggiatura(self, music): r""" Handles LilyPond ``\appoggiatura`` command. """ grace = core.BeforeGraceContainer(music[:], command=r"\appoggiatura") return grace
def slashed_grace_container(self, music): r""" Handles LilyPond ``\slahsedGrace`` command. """ grace = core.BeforeGraceContainer(music[:]) return grace