On Fri, Mar 29, 2024 at 1:25 PM Stephan Schöll <mu...@gmx.ch> 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

Reply via email to