lilypond-user
[Top][All Lists]
Advanced

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

Re: Custom drumStyleTable and improvisationOn/Off


From: David Kastrup
Subject: Re: Custom drumStyleTable and improvisationOn/Off
Date: Wed, 11 Jul 2018 00:18:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Robert Schmaus <address@hidden> writes:

> Hi David,
>
> you are right, of course - here it is:
>
> \version "2.19.35"
>
> #(define mydrums '(
>  (bassdrum            default         #f              -3)
>  (snare               default         #f              1)
>  (hihat               cross           #f              1)
> ))
>
> \score {
>   \new DrumStaff {
>     \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
>     \new DrumVoice \drummode {
>       sn4 sn4 sn4 sn4
>       \improvisationOn
>       sn4 sn4 sn4 sn4
>       \improvisationOff
>     }
>   }
> }
>
>
> The improvisation switch works well if one comments out the \set ... line.

Ugh.  drumStyleTable overrides most of the settings in \improvisationOn
in Drum_note_engraver.  So maybe try something not supported by your
drumStyleTable.

Like tamb4 4 4 4 or so.

Should we rather check for existing settings and not override them?
Maybe.

> Apart from that, I've played around with the whole issue and noticed
> that percussion "pitches" which are not included in the table
> definition still react to the \improvisationOn/Off directive. So my
> workaround for the time being is: using one of the percussions which I
> don't need for the score for the improvisation parts. It only needs to
> look good, and that it does, as usually ...

Oh, you found that workaround already.

-- 
David Kastrup



reply via email to

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