lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hiding grace notes


From: David Kastrup
Subject: Re: hiding grace notes
Date: Mon, 24 Oct 2011 23:12:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

-Eluze <address@hidden> writes:

> Federico Bruni-5 wrote:
>> 
>> Il 23/10/2011 23:33, -Eluze ha scritto:
>>> there are those 3 engravers:
>>>
>>> Grace_beam_engraver
>>> Grace_engraver
>>> Grace_spacing_engraver
>>>
>>> maybe removing them could help?
>> thanks for the tip
>> unfortunately, the following snippet doesn't work:
>> 
>> 
> yes, you're right (but i was only guessing) - these engravers obviously just
> take care of the appearance of grace notes
>
> anybody else?

systemgrace = #grace
grace = #(define-music-function (parser location m)
            #{ \tag #'grace \systemgrace $m #})

Then define your music in \mymusic as usual (it will use the changed
version of \grace).  When you want the version without graces, call the
music with \removeTag #'grace \mymusic.

Something like that.

-- 
David Kastrup




reply via email to

[Prev in Thread] Current Thread [Next in Thread]