Robert Schmaus <robert.schm...@web.de> 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

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to