[Top][All Lists]
[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: |
Wed, 26 Oct 2011 09:51:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) |
Federico Bruni <address@hidden> writes:
> Hi David,
>
> thanks for the hint
>
> Il 24/10/2011 23:12, David Kastrup ha scritto:
>> 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.
>
> you probably meant \removeWithTag
Yup.
> grace = #(define-music-function (parser location m)
> #{ \tag #'grace \systemgrace $m #})
Well, the real surprise here is the absence of a syntax error. The type
signature is missing after the argument list. If you add (ly:music?)
after (parser location m), the example compiles and does what you want.
It would require a thorough analysis to understand just _what_ this
definition actually does without that.
Of course, it complains about not being able to end the slur that
started inside of the grace note.
--
David Kastrup
- hiding grace notes, Federico Bruni, 2011/10/23
- Re: hiding grace notes, -Eluze, 2011/10/23
- Re: hiding grace notes, Federico Bruni, 2011/10/24
- Re: hiding grace notes, -Eluze, 2011/10/24
- Re: hiding grace notes, David Kastrup, 2011/10/24
- Re: hiding grace notes, Federico Bruni, 2011/10/26
- Re: hiding grace notes,
David Kastrup <=
- Re: hiding grace notes, David Kastrup, 2011/10/26
- Re: hiding grace notes, Federico Bruni, 2011/10/26
- Re: hiding grace notes, -Eluze, 2011/10/26
- Re: hiding grace notes, David Kastrup, 2011/10/26