lilypond-user
[Top][All Lists]
Advanced

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

Re: mute percussion notation


From: Bernard
Subject: Re: mute percussion notation
Date: Wed, 23 Mar 2016 12:14:03 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 23-03-16 11:23, David Kastrup wrote:
Bernard <address@hidden> writes:

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.

Could you give a working code sample, for the syntax?
In a drumnote like bassdrum or bassdrummute or sidestick a lot of info is defined?
How can I define this myself.

F.e. In Djembé I would like (sorry I could not create an image file, so please compile it to see visual what I need) are :
\version "2.18.2"

%\relative c' {

 {
  e' b' f''
}
\addlyrics {
  bas tone slap
}

But then with 3 staff lines, percussion key, the mute token, and the use sidestick (ss) drum note. This last request requires the drummode as we use, to be able to use existing drumnotes. So could you give an example how I would define f.e. dslapmute (Djembé slap mute) with abbrevation dsm?

Thanks.





reply via email to

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