Hi Lucas,

> Hello! I have a composition in which the singer uses rhythmic and 
> conventional staffs back and forth. However, while trying to clean up my past 
> spaghetti code, I've noticed I couldn't display lyrics after the first staff.

I think your coding is too complicated for what you need. Here’s how I would 
code it:

%%SOF
\version "2.26.0"

melodyRhythmic = {
  c''1 d'' e'' f''
  s1*3
}
melodyNotes = {
  s1*4
  g'1 a' b'
}

spacer = {
  c'1 1 1 1
  \break
  c'1 1 1
}

theLyrics = \lyricmode { I a e a o o o }

\score {
  <<
    \new RhythmicStaff \melodyRhythmic
    \new Staff \melodyNotes
    \new Devnull \spacer
    \new Lyrics \theLyrics
  >>
  \layout {
    \context {
      \RhythmicStaff
      \RemoveAllEmptyStaves
    }
    \context {
      \Staff
      \RemoveAllEmptyStaves
    }
    \context {
      \Lyrics
      \override VerticalAxisGroup.staff-affinity = #UP
      \override VerticalAxisGroup.nonstaff-relatedstaff-spacing = #'((padding . 
1))
    }
  }
}
%%EOF


Hope that helps!
Kieren.
__________________________________________________

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.


Reply via email to