lilypond-user
[Top][All Lists]
Advanced

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

Re: Consistent bar number positioning


From: -Eluze
Subject: Re: Consistent bar number positioning
Date: Fri, 10 Jun 2011 14:47:31 -0700 (PDT)


Nicholas Moe wrote:
> 
> Thanks, Eluze. That worked in my example, but in the actual score, it
> doesn't. The spacing is still inconsistent, especially after line
> breaks. I'm including a better example of what happens.
> 
maybe the extra-offset wasn't a good idea since when there is a rest (R1)
and consequently no lyric text the extra-offset is mis-oriented or looses
its base …

an other idea is to move the Bar_number_engraver from the Score to the Staff
context

\score { 
  \new Staff = "staff" {
    \override Staff.BarNumber #'break-visibility = #'#(#f #t #t) 
    \set barNumberVisibility = #(every-nth-bar-number-visible 1) 
    <<
      \new Voice = "music" \relative c'' { 
        %         \override Score.BarNumber #'extra-offset = #'( 0 . -3.5 ) 
        \voiceOne 
        \repeat unfold 9 { b1 } r2 r4 b4~ b8 b8 b4 b4 b4 \break 
        R1 \repeat unfold 6 { b1 } 
      } 
      \new Lyrics \with { alignAboveContext = "staff" } \lyricsto "music" { 
        \lyricmode { 
          fi -- li -- um et vo -- ca -- bant e -- um 
          no -- mi -- ne pa -- tris 
          su -- i Za -- cha -- ri -- am. 
        } 
      } 
    >> 
  } 
} 
\layout {
  \context {
    \Score
    \remove Bar_number_engraver
  }
  \context {
    \Staff
    \consists Bar_number_engraver
  }
  \context {
    \Lyrics
    \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing =
    #'((basic-distance . 5)
     (minimum-distance . 5)
     (padding . .75))
  }
}

again - this seems to work, but i really don't know if it will not break at
another point!

maybe the developers can tell what to do!?

cheers
Eluze
-- 
View this message in context: 
http://old.nabble.com/Consistent-bar-number-positioning-tp31815077p31821383.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.




reply via email to

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