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