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 11:23:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Bernard <address@hidden> writes:

> Hi Colin,
>> It seems that the Percussion Notes table A.15 in the NR has some
>> problems, in that the conga notes aren't visibly different. This
>> snippet works for me:
>> *****************
>> \version "2.19.37"
>>
>> \new DrumStaff  \with {
>>   drumStyleTable  = #congas-style
>> }
>>  <<
>>   \drummode {
>>      cghm4 cghm1 % muted
>>     \bar "||"
>>       cgh4 cgh1 % open
>>     }
>>  >>
>> **************************
>>
> This works fine for me also, thanks.
>
> But for me it is not sufficient to create Djembé drumnotes.
>
> I followed the link Thomas Morley gave me previous to customize percussion :
>
> http://www.lilypond.org/doc/v2.18/Documentation/notation/common-notation-for-percussion#custom-percussion-staves
>
> Which brought me very far.
>
> I could even customize the markup of each (drum)note with info from
> http://lilypond-cookbook.tumblr.com/
>
> I am very, very close. I could use the predefined bassdrum (bd) and
> bassdrum mute (bdm) the note image is ok, the mute token is
> correct. But I have to choose one specific staff line where the note
> is displayed. But the Djembé has three different kind of note, each
> one I would like to place on a different staffline. So I have to
> define my own drumnote.
>
> Lilypond is highly flexible and many drumnotes are predefined. But I
> could not find info how to define my own drumnote.
>
> I tried :
>
> --------------------------------------------
>
> \version "2.18.2"
>
> #(define mydrums '(
>          (bassdrum        default   #f           -1)
>          (slap                 default   #f          0)))
> one = \drummode {  bd  slap  }
>
> \new DrumStaff
>   \with {
>       \override StaffSymbol #'line-count = #3
>      }
>    <<
>   \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
>
>   \new DrumVoice { \voiceOne \one }
>>>
>
> ---------------------------------------------
>
> But this results an error. althougth drumnote "slap" is defined it can
> not be used.

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.

-- 
David Kastrup



reply via email to

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