lilypond-user
[Top][All Lists]
Advanced

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

Re: mute percussion notation


From: David Kastrup
Subject: Re: mute percussion notation
Date: Wed, 23 Mar 2016 12:45:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Simon Albrecht <address@hidden> writes:

> On 23.03.2016 11:23, David Kastrup wrote:
>
>> It can once it has been input.  The drumStyleTable tells LilyPond how to
>> typeset drum notes once they are in the music.  It doesn't tell LilyPond
>> what drum notes are permitted in music.  So you need to use the existing
>> names, or amend the parser.
>>
>> Amending the parser is done with
>>
>> drumPitchNames.slap = #'slap
>>
>> Note that you can define multiple names for the same definition in the
>> drum style table, so you can also add
>>
>> drumPitchNames.sl = #'slap
>>
>> and this will work without further changes to mydrums.
>
> Isn’t this the very latest 2.19.39 awesome alist syntax? Because the
> snip above states \version "2.18.2".

No, this was issue 3748.

commit a7eb9033f29d35d110afd1730a238f5c50e00369
Author: David Kastrup <address@hidden>
Date:   Sun Dec 22 20:38:22 2013 +0100

    Issue 3748: Allow assignments with property paths to use x.y.z = value 
syntax
    
    This is actually an embarrassing oversight in issue 2883: while it
    became possible to rewrite
    
        markup-system-spacing #'minimum-distance = #25
    as
        markup-system-spacing minimum-distance = #25
    
    it has been overlooked to allow for the obvious
    
        markup-system-spacing.minimum-distance = #25


This commit is indeed version 2.19.0, but there is also the cherry-picked

commit eff4ab669513f38f14cc6d01b24bead358124da1
Author: David Kastrup <address@hidden>
Date:   Sun Dec 22 20:38:22 2013 +0100

    Issue 3748: Allow assignments with property paths to use x.y.z = value 
syntax
    
    This is actually an embarrassing oversight in issue 2883: while it
    became possible to rewrite
    
        markup-system-spacing #'minimum-distance = #25
    as
        markup-system-spacing minimum-distance = #25
    
    it has been overlooked to allow for the obvious
    
        markup-system-spacing.minimum-distance = #25



in 2.18.0.  So this oversight has been corrected in 2.18.0 already.

The new developments allow numbers into alist indexes, and actually
referencing individual alist members syntactically.  But the assignment
syntax for symbols as indexes (and symbol list arguments) was
established earlier.  I think that the old

drumPitchNames #'slap = #'slap

has worked for a long long time (quite earlier than 2.12).  But it's
quite underdocumented.  I think it caught me by surprise when I first
discovered it in the parser.

-- 
David Kastrup



reply via email to

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