lilypond-user
[Top][All Lists]
Advanced

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

Re: matching unequal bars in separate staves


From: Shane Brandes
Subject: Re: matching unequal bars in separate staves
Date: Mon, 7 Feb 2011 15:27:39 -0500

That works. Sort of ugly but it works.

\version "2.13.0"

\header {
  % Remove default LilyPond tagline
  tagline = ##f
}

\paper {
  #(set-paper-size "letter" 'landscape)
}

global = { }

rightPianoI = \relative c'' {
  \global \time 2/4
  % Music follows here.
  a8] r d a r d[ a] r d, a' r d[ a] r r4
}

leftPianoI = \relative c'' {
  \global \clef "treble"
  % Music follows here.
\time 2/4  r8 g[ d]  r g[ d] r g[ d] r g[ d] r g[ d] r
}

rightPianoII = \relative c'' {
  \global
  % Music follows here.
  <<{ \time 2/4 a8 s16 r8 s16 r8 \bar"" s16 d8 s16 \bar "|" a2 s16
\bar"|" d8 s16 \bar"" r8 s16 r4 s16} \\ { s2 s2 \bar"" s2 s2}>>
}

leftPianoII = \relative c'' {
  \global \clef "treble"
  % Music follows here.
  \time 2/4 r8 s16 g8 [s16  d8] \bar "" s16 r8 s16 \bar "|" r4\bar
""s16   g4(\bar"|" d8) s16 \bar"" r8 s16 r4 s16
}

pianoIPart = \new PianoStaff \with {
  instrumentName = ""
} <<
  \new Staff = "right" \with {
    midiInstrument = "acoustic grand"
  } \rightPianoI
  \new Staff = "left" \with {
    midiInstrument = "acoustic grand"
  } { \clef bass \leftPianoI }
>>

pianoIIPart = \new PianoStaff \with {
  instrumentName = ""
} <<
  \new Staff = "right" \with {
    midiInstrument = "acoustic grand"
  } \rightPianoII
  \new Staff = "left" \with {
    midiInstrument = "acoustic grand"
  } { \clef bass \leftPianoII }
>>

\score {
  <<
    \pianoIPart
    \pianoIIPart
  >>
 \layout {
  \context {
    \Score
    \remove "Timing_translator"
    \remove "Default_bar_line_engraver"
    \remove "Bar_number_engraver"
    \override SpacingSpanner #'uniform-stretching = ##t
    \override SpacingSpanner #'strict-note-spacing = ##t
    proportionalNotationDuration = #(ly:make-moment 1 32)
  }
  \context {
    \Staff
    \consists "Timing_translator"
    \consists "Default_bar_line_engraver"
  }

  \context {
    \Voice
    \remove "Forbid_line_break_engraver"
    tupletFullLength = ##t
  }
  }
  \midi { }
}



reply via email to

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