IMHO, this is no bug but expected behaviour:
\improvisationOn will set NoteHead.style = #'slash.
So far, so good.
As soon the custom drumStyleTable contains an explicit NoteHead.style (such as
#'default or #'cross), the #'slash preset by \improvisationOn will be
overwritten again.
The standard drumStyleTable definitions don't use #'default but () so that
these instruments won't override the #'slash set by \improvisationOn. #f
instead of () will also work:
~~~
\version "2.19.82"
#(define mydrums '((snare () #f 1)))
\score {
\new DrumStaff \with {
drumStyleTable = #(alist->hash-table mydrums)
} \new DrumVoice \drummode {
sn4 sn4 sn4 sn4
\improvisationOn
sn4 sn4 sn4 sn4
}
}
~~~
If the modified custom drumStyleTable uses () instead of default, just like in
the standard defintions, even custom drumStyleTable definitions will work
exactly like the standard.
All the best,
Torsten
Attachments:
-
[issue-5377.png](https://sourceforge.net/p/testlilyissues/issues/_discuss/thread/3f2d8d46/9f2a/attachment/issue-5377.png)
(4.3 kB; image/png)
---
** [issues:#5377] improvisationOn doesn’t work in DrumStaff with altered
drumStyleTable**
**Status:** Accepted
**Created:** Tue Jul 10, 2018 09:59 PM UTC by Simon Albrecht
**Last Updated:** Tue Jul 10, 2018 09:59 PM UTC
**Owner:** nobody
**Attachments:**
- [Screenshot from 2018-07-10
23-59-24.png](https://sourceforge.net/p/testlilyissues/issues/5377/attachment/Screenshot%20from%202018-07-10%2023-59-24.png)
(2.1 kB; image/png)
As reported by Robert Schmaus in [this
thread](http://lists.gnu.org/archive/html/lilypond-user/2018-07/msg00184.html),
after modifying `drumStyleTable` `\improvisationOn` won’t affect any pitches
modified through the style table:
~~~
:::TeX
\version "2.19.82"
#(define mydrums '((snare default #f 1)))
\score {
\new DrumStaff \with {
drumStyleTable = #(alist->hash-table mydrums)
} \new DrumVoice \drummode {
sn4 sn4 sn4 sn4
\improvisationOn
sn4 sn4 sn4 sn4
}
}
~~~
(output attached)
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/testlilyissues/issues/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/testlilyissues/admin/issues/options. Or, if this is
a mailing list, you can unsubscribe from the mailing list.------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Testlilyissues-auto mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto