lilypond-user
[Top][All Lists]
Advanced

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

Re: \mark under score clashing with measure numbers


From: Pierre Perol-Schneider
Subject: Re: \mark under score clashing with measure numbers
Date: Mon, 25 Aug 2014 22:34:28 +0200

2014-08-25 21:50 GMT+02:00 Craig Dabelstein <address@hidden>:

 
This works brilliantly on the score, but on the individual parts where there are no measure numbers, the \mark text "D.C. al Fine" is pushed up and overlaps the staff.

Ok, I see.
 
Any more ideas?

I'd use tags :

\version "2.18.2"

myMusic = {
  s1*4 \break s1*4
  \bar "||"
  \tag ensemble {
    \tweak break-visibility #end-of-line-visible
    \tweak self-alignment-X #RIGHT
    \tweak direction #DOWN
    \tweak extra-offset #'(0 . 3)
    \mark "D.C. al Fine"
  }
  \tag individual {
    \tweak break-visibility #end-of-line-visible
    \tweak self-alignment-X #RIGHT
    \tweak direction #DOWN
    \mark "D.C. al Fine"
  }
}

myDynamics = {
  \startMeasureCount
  s1*4 \break s1*3
  \tag ensemble {
    \once\override MeasureCounter.extra-offset = #'(0 . -2)
    s1 \stopMeasureCount
  }
  \tag individual {
    s1 \stopMeasureCount
  }
}

\score {
  \new StaffGroup
  \keepWithTag ensemble
  <<
    \new Staff \myMusic
    \new Staff \myMusic
    \new Staff \myMusic
    \new Dynamics \myDynamics
  >>
  \layout {
    \context {
      \Dynamics
      \consists #Measure_counter_engraver
      \override MeasureCounter.direction = #DOWN
      \override MeasureCounter.font-encoding = #'latin1
      \override MeasureCounter.font-shape = #'italic
      % to control the distance of the Dynamics context from the staff:
      \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = #2
    }
    \context {
      \Score
      \remove "Bar_number_engraver"
    }
  }
}

\score {
  \keepWithTag individual
  <<
    \new Staff \myMusic
    \new Dynamics \myDynamics
  >>
  \layout { }
}


Cheers,
Pierre


reply via email to

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