Hello,

I've been using Lilypond more frequently lately and have discovered 2 bugs.
Attached are 2 minimal working examples, one for each bug (breath.ly seems
to be a new bug whereas I'm not completely sure if ottava.ly shows a new
bug... the example on Gitlab is more convoluted than mine). They are both
related to engraving around the time of a staff change.

Thanks for keeping track of these issues!
% Including an \ottava 0 should do nothing, but it completely changes the placement
% of notes when changing staves. Lilypond engraves an e instead of a c'' in this example
% Removing "\ottava 0" fixes the issue, as does commenting out lines 37--40.
% Note that I'm not sure if this is the same issue as #6633, but I find my example simpler. 
% Contradicting a comment on that issue, adding "\undo \ottava 0" after "\ottava 0" does nothing
\version "2.24.0"
\language "english"


right_hand = {
   \clef treble
   \time 4/4
   
   c'2 \ottava 0 \change Staff = "left_hand" c''2
}


left_hand = {
   \clef bass
   \time 4/4
   
   c2 c2
}


\score {
   \new PianoStaff \with {instrumentName = "Piano"}
   <<
      \new Staff = "right_hand" \right_hand
      \new Staff = "left_hand" \left_hand
   >>
   \layout {
      \context {
         \Staff
         \remove Ottava_spanner_engraver
      }
      \context {
         \Voice
         \consists Ottava_spanner_engraver
      }
   }
} 
% Breath marks should be printed after each notes in both staves.
% When I change the staff (line 11), the breath mark before the
% staff vanishes, and no breath marks appear in the new staff
\version "2.24.0"
\language "english"


right_hand = {
   \clef treble
   \time 4/4
   
   c'4\breathe c'4\breathe \change Staff = "left_hand" c'4\breathe c'4\breathe
}


left_hand = {
   \clef bass
   \time 4/4
   
   c4\breathe c4\breathe c4\breathe c4\breathe
}


\score {
   \new PianoStaff \with {instrumentName = "Piano"}
   <<
      \new Staff = "right_hand" \right_hand
      \new Staff = "left_hand" \left_hand
   >>
}   

Reply via email to