Dear lilypond-users,
  I found out that in a timeig-context the time-signature too far on the left 
side, if there are clef-changes. In the below quoted snippet the second 
score-block looks good, but the first doesn't.
  How can I avoid it?
  Thanks for Your help!
  Stefan

  \version "2.11.60"

  \layout{
   \context {
     \type "Engraver_group"
     \consists "Time_signature_engraver"
     \consists "Text_spanner_engraver"
     \consists "Text_engraver"
     \consists "Dynamic_engraver"
     \consists "Axis_group_engraver"
     \name "TimeSig"
     \override TimeSignature #'font-size = #3
     \override TimeSignature #'break-align-symbol = ##f
     \override TimeSignature #'X-offset =
     #ly:self-alignment-interface::x-aligned-on-self
     \override TimeSignature #'self-alignment-X = #0
     \override TimeSignature #'after-line-breaking = #shift-right-at-line-begin
   }
   \context {
     \Score \accepts TimeSig
   }
   \context { \Staff
     \remove "Time_signature_engraver"
   }
  }

  timeSignatures = { \time 2/4 s2 \mark \default \time 3/4 s2. \time 4/4 s1 }

  \score {
    << 
  \override Score.BarNumber #'fontsize = #2
  \set Score.currentBarNumber = #150
    \new TimeSig \timeSignatures
       \new Staff \relative { c'2 c2.  c1 }
       \new Staff { c'2 \clef bass  a2.\clef treble  a'1}
    >>
  }

  \score {
  << 
  \override Score.BarNumber #'fontsize = #2
  \set Score.currentBarNumber = #150
  \new TimeSig \timeSignatures
     \new Staff \relative { c'2 c2.  c1 }
     \new Staff { c'2 a2.a'1}
  >>
  }
I am not the best person to answer your question, because i don't understand 
very well all the questions concerning 'break-align-symbol but as you have no 
answers to your message, i tried a lot of possibilities and here is a solution 
that seems to work.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.11.60"

\layout{
 \context {
   \type "Engraver_group"
   \consists "Time_signature_engraver"
   \consists "Text_spanner_engraver"
   \consists "Text_engraver"
   \consists "Dynamic_engraver"
   \consists "Axis_group_engraver"
   \name "TimeSig"
   \override TimeSignature #'font-size = #3
   \override TimeSignature #'break-align-symbol = #'staff-bar
   \override TimeSignature #'X-offset = 
#ly:self-alignment-interface::x-aligned-on-self
   \override TimeSignature #'self-alignment-X = #CENTER
 }
 \context {
   \Score \accepts TimeSig
 }
 \context { \Staff
   \remove "Time_signature_engraver"
 }
}

timeSignatures = { 
  \time 2/4  s2  %% \mark \default
 \time 3/4 s2. \time 4/4 s1 }

\score {
  << 
   \new TimeSig \timeSignatures
 \new Staff \relative { c'2  c2.  c1 }
 \new Staff { c'2 \clef bass  a2.\clef treble  a'1}
  >>
}

\score {
<< 
 \new TimeSig \timeSignatures
 \new Staff \relative { c'2 c2. c1 }
 \new Staff { c'2 a2.a'1}
>>
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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

Reply via email to