On 23-03-16 11:23, David Kastrup wrote:
Bernard <lilyp...@bernardhulsman.nl> 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.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user