bug-lilypond
[Top][All Lists]
Advanced

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

Re: Rehearsal mark and bar number vertical placement


From: Matthieu Jacquot
Subject: Re: Rehearsal mark and bar number vertical placement
Date: Wed, 8 Sep 2010 07:44:06 +0000
User-agent: KMail/1.13.5 (Linux/2.6.35-ARCH; KDE/4.5.1; i686; ; )

On Tuesday 07 September 2010 14:49:16 Xavier Scheuer wrote:
> On 7 September 2010 16:35, Matthieu Jacquot <address@hidden> wrote:
> >
> > Since the 2.13.28 (at least) it seems to have a problem with the
> > vertical placement of the bar numbers and rehearsal marks (2.12 is fine).
> > I'm trying this code, slightly modified from the LSR code (without the
> > Rehearsal Marks) http://lsr.dsi.unimi.it/LSR/Snippet?id=272
> > \layout {
> >  \context {
> >    \type "Engraver_group"
> >    \consists "Time_signature_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
> >
> > [...]
> >
> 
Here's the workaround I found :
Remove Mark_engraver and Bar_number_engraver from Score and add them to the 
first staff. It seems to work fine...

\layout {
  \context {
    \type "Engraver_group"
    \consists "Time_signature_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 = #CENTER
     \override TimeSignature #'after-line-breaking = #shift-right-at-line-begin
   
  }
  \context {
    \Score
    \accepts TimeSig
      \remove "Mark_engraver"
     \remove "Bar_number_engraver"
  }

\context {
    \Staff
    \remove "Time_signature_engraver"
  }}

  timeSignatures = { \repeat unfold 5 {\time 2/4 s2 \time 3/4 s2. \time 4/4 s1 
s1}}

\score {
  <<
    \new TimeSig \timeSignatures
  
    \new Staff \with {\consists "Bar_number_engraver" \consists "Mark_engraver" 
}
                \relative c' { \repeat unfold 5 {c'2 c2. c1\mark \markup"a" c1 
\break}}
    
    \new Staff {\repeat unfold 5 { a2 a2. a1 a1}}
  >>

}



reply via email to

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