Re: Conflicting \section and \grace?
Xavier, Knute Thanks for your guidance! Thanks to your explanations, I now also understand the relevance of NR 1.2.6, which I had of course consulted ;-) Best regards Stephan Am 29.03.2024 um 22:34 schrieb Xavier Scheuer: On Fri, 29 Mar 2024 at 22:31, Knute Snortum wrote: > > This looks like a very old bug that LilyPond has. Basically, if you have a grace note starting a measure in one staff, you have to have one on all staves, even if it's just a spacer. So adding this to the melody will fix the problem: Exactly. https://gitlab.com/lilypond/lilypond/-/issues/34 This is documented in NR 1.2.6 Special rhythmic concerns > Grace notes > Known issues and warnings Kind regards, Xavier
Re: Conflicting \section and \grace?
On Fri, 29 Mar 2024 at 22:31, Knute Snortum wrote: > > This looks like a very old bug that LilyPond has. Basically, if you have a grace note starting a measure in one staff, you have to have one on all staves, even if it's just a spacer. So adding this to the melody will fix the problem: Exactly. https://gitlab.com/lilypond/lilypond/-/issues/34 This is documented in NR 1.2.6 Special rhythmic concerns > Grace notes > Known issues and warnings Kind regards, Xavier
Re: Conflicting \section and \grace?
On Fri, Mar 29, 2024 at 1:25 PM Stephan Schöll wrote: > Hi all > > I'm adding an ossia staff during specific bars only. This works fine in > general. > > Interestingly / strangely, as soon as the \section (double barline) > falls into a \grace (or \appoggiatura or \acciaccatura) in the ossia > staff a regular barline is added at the position where I'd expect the > double barline to appear. Without either \section or \grace, everything > looks fine. > > Toggle the comment marks in order to reproduce. The issue is not related > to the ossia Staff type (DrumStaff). It occurs with regular Staves as well. > This looks like a very old bug that LilyPond has. Basically, if you have a grace note starting a measure in one staff, you have to have one on all staves, even if it's just a spacer. So adding this to the melody will fix the problem: melody = \relative c' { c1 \section % play with (un)commenting \grace { s8 } R1 c } -- Knute Snortum
Conflicting \section and \grace?
Hi all I'm adding an ossia staff during specific bars only. This works fine in general. Interestingly / strangely, as soon as the \section (double barline) falls into a \grace (or \appoggiatura or \acciaccatura) in the ossia staff a regular barline is added at the position where I'd expect the double barline to appear. Without either \section or \grace, everything looks fine. Toggle the comment marks in order to reproduce. The issue is not related to the ossia Staff type (DrumStaff). It occurs with regular Staves as well. TIA Stephan \version "2.24" drumFill = \drummode { %\grace { tomh16 16} % play with (un)commenting tomh16 r16 \grace { toml16 16} 16 r16 \grace { tomh16 16} 16 r16 \grace { toml16 16} 16 r16 r2 } melody = \relative c' { c1 %\section % play with (un)commenting R1 c } \score { << \new DrumStaff = "ossia" \with { \remove Time_signature_engraver \hide Clef \magnifyStaff #2/3 } { \stopStaff s1 \startStaff \drumFill \stopStaff } \new Staff { \melody } >> \layout { \context { \DrumStaff \RemoveAllEmptyStaves } } }