[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Custom percussion style is ignored for the first note when it is a grace
From: |
Stu McKenzie |
Subject: |
Custom percussion style is ignored for the first note when it is a grace note |
Date: |
Wed, 25 Jan 2023 08:43:17 -0800 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 |
There seems to have been various reports of bugs when the first note is
a grace note, but this bug has been in many LilyPond versions to date.
When the first note of a drum score has a grace note, LilyPond outputs
the default note, rather than the custom percussion style.
In this case, \acciaccatura is used to create each grace note - main
note combination.
Here's a "Tiny example":
\version "2.24.0"
#(define mydrums '( (hightom default #f 3)))
\score {
\new DrumStaff <<
\set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
\new DrumVoice { \voiceTwo \drummode { \partial 2 \acciaccatura
tomh8 tomh4 \acciaccatura tomh8 tomh4 } }
>>
}
The first combination outputs the default tomh for the first grace note,
with the main note output from the custom mydrums.
The second combination produces the expected output.
Here's a workaround (full bar instead of partial, which is not what was
required):
\version "2.24.0"
#(define mydrums '( (hightom default #f 3)))
\score {
\new DrumStaff <<
\set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)
\new DrumVoice { \voiceTwo \drummode { r2 \acciaccatura tomh8 tomh4
\acciaccatura tomh8 tomh4 } }
>>
}
- Custom percussion style is ignored for the first note when it is a grace note,
Stu McKenzie <=