I'm glad to see you've made some progress, considering how often you have ossia 
measures, you may want to consider just starting and stopping the staff 
whenever you need it:

\version "2.12.3"

\paper { indent = 0\mm }
music = {
      \override Staff.TimeSignature #'style = #'()
      \override Score.BarNumber #'break-visibility = #end-of-line-invisible
      \key d \major
      \relative c' {
         \time 3/2
         c c d d es es |
         e e fis fis
         <<
            {
               g g |
               \time 1/4
               r |
               \time 4/2
               c, c d d es es
               e4 e | 
            }
            \new Staff = "ossia" \with {
               alignAboveContext = #"main"
               firstClef = ##f
            }
            { 
               \time 3/4 g4 g r |
               \stopStaff
               s1.
               \startStaff
               \time 3/4 e!4 e r | 
            }
         >>
         \time 1/4
         r |
         \time 3/2
         r c d d es es |
      }
      \bar "|."
}

\score {
   \new Staff = "main" \music
   \layout {
      \context {
         \Score
         \remove "Timing_translator"
         \remove "Default_bar_line_engraver"
      }
      \context {
         \Staff
         \consists "Timing_translator"
         \consists "Default_bar_line_engraver"
      }
   }
}


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to