lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on creating an "ossia" with different times?


From: James Bailey
Subject: Re: Question on creating an "ossia" with different times?
Date: Mon, 1 Nov 2010 16:58:01 +0100

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"
      }
   }
}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]