lilypond-user
[Top][All Lists]
Advanced

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

12/8 upper and 4/4 lower staves with equal bar duration


From: Javier Ruiz-Alma
Subject: 12/8 upper and 4/4 lower staves with equal bar duration
Date: Thu, 15 Sep 2011 23:23:33 -0700 (PDT)

I'm trying to typeset a piece marked with 12/8 upper and 4/4 lower staves.  By default, Lilypond forces both staves to 4/4.  I tried the code below, which allowed independent staff timing, but the bars are now decoupled.
Any ideas on how to mod this to get bars on both staves synched up to same duration?
Javier
 
\version "2.14.2"
rightHand= \relative c''{
 \time 12/8
 \clef treble
  \repeat unfold 12 {d8 c8}
}
leftHand=\relative c{
 \time 4/4
 \clef bass
    \repeat unfold 6 {d4 c4}
}
\score{
    \new PianoStaff <<
       \new Staff \with {\consists "Bar_number_engraver"
       } \rightHand
       \new Staff \with {\consists "Bar_number_engraver"
       } \leftHand
    >>
    \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 64)
      }
      \context {
        \Staff
        \consists "Timing_translator"
        \consists "Default_bar_line_engraver"
      }
      \context {
        \Voice
        \remove "Forbid_line_break_engraver"
        tupletFullLength = ##t
      }
    }
  }
 

reply via email to

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