I solved the issue, but still don’t understand why it happened.

Apparently, when both voices leave the top staff, the staff or some context or 
something just goes away at that point, even though it’s in use later? I just 
added a third parallel voice that sits in the top staff and s1*4 to hold it 
open, and that fixed the beaming issue. I have no idea why that worked, or why 
it works in the standalone snippet and not in my original case.

> On Aug 15, 2023, at 6:11 PM, Jin Choi <[email protected]> wrote:
> 
> I have a section of piano music where two voices start in the treble clef and 
> subsequently move down into the bass clef. When the right hand moves down, 
> the beam stays in the treble clef unattached to anything:
> 
> <Screenshot 2023-08-15 at 6.10.33 PM.png>
> 
> When I try to isolate this section, the problem does not occur. I am 
> mystified as to what is going on. What might be some things I could try?
> 
> \version "2.24.1"
> 
> top = { \change Staff = "upper" \voiceTwo }
> bottom = { \change Staff = "lower" \voiceOne }
> 
> upper = \relative c'' {
>  \time 2/2
>  \key c \major
>  \voiceOne
>  r8 bes'\mf( a gis a ees d cis |
>  d bes a gis a ees d cis |
>  d) bes'\dim( a\! gis a ees d cis |
>  d[ \bottom bes a gis] a[ ees d)] r8 |
>  \top 
>  \oneVoice
>  r8\p
> }
> 
> lower = \relative c' {
>  \clef bass
>  a4 r8 \top bes'( a gis a ees |
>  d cis d \bottom \voiceTwo bes a gis a ees |
>  d cis d bes' a gis a ees |
>  d cis d bes a gis a cis | 
>  \oneVoice
>  fis,4)
> 
> }
> 
> \score {
>  \layout {
>    \context {
>      \Staff
>      \consists Merge_rests_engraver
>    }    
>    \context {
>      \PianoStaff
>      \override StaffGrouper.staff-staff-spacing.basic-distance = #11
>      \override TextScript.avoid-slur = #'outside
>      \override TupletBracket.bracket-visibility = ##f
>    }
>  }  
>  \new PianoStaff {
>    <<
>    \new Staff = "upper" \upper
>    \new Staff = "lower" \lower
>>> 
>  }
> }
> 


Reply via email to