[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Custom drumStyleTable and improvisationOn/Off
From: |
Torsten Hämmerle |
Subject: |
Re: Custom drumStyleTable and improvisationOn/Off |
Date: |
Tue, 10 Jul 2018 15:22:27 -0700 (MST) |
Robert Schmaus wrote
> The improvisation switch works well if one comments out the \set ... line.
Hi Robert,
You won't believe it, but everything works "as expected":
\improvisationOn actually does set the NoteHead.style to #'slash, but in
your custom case, this #'slash will be overwritten again by your #'default
value (snare and bassdrum), and thus a standard notehead will be displayed.
Using standard drum definitions, the HiHat notehead (a cross) won't be
replaced by a slash, either.
*Solution:*
If you replace default by () or #f in your custom definition, everything
will work as with the standard definitions, because your custom definition
will not override the #'slash notehead style set by \improvisationOn any
more:
#(define mydrums '(
(bassdrum () #f -3)
(snare () #f 1)
(hihat cross #f 1)
))
The original definitions use () instead of default, that's why it works
there.
Every explicitly set style in the definitions will rule out the #'slash of
\improvisationOn.
HTH,
Torsten
--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html