Dear all,

The attached score show a context collision.

In an orchestra score, I like to have the bar numbers at the top left
and bottom left of each system. Also, I like to gather all textual
informations at the top. For this, I defined 2 new contexts :TextLine
and BarNumberLine.
Problem: text scripts collide with notes.
In the attached minimum example, I have left only 1 instrument. You
can see that as soon as there is a bar number at the beginning of the
line, the text scripts overlap with the notes.

If I remove the BarNumberLine, the text scripts are OK.

What do I do wrong?

Kind regards,

Frédéric
\version "2.18.0"

\layout {
	\context { \name "TextLine"
		\type "Engraver_group"
		\consists "Staff_collecting_engraver"
		\consists "Metronome_mark_engraver"
			\override MetronomeMark.padding = #0
			\override MetronomeMark.outside-staff-priority = #200
			\override MetronomeMark.font-size = #2
		\consists "Text_spanner_engraver"
			\override TextSpanner.font-size = #2
		\consists "Mark_engraver"
			\override RehearsalMark.outside-staff-priority = #75
			\override RehearsalMark.font-size = #4
		\consists "Volta_engraver"
			\override VoltaBracketSpanner.outside-staff-priority = #100
			\override VoltaBracket.font-size = #-2
		\consists "Text_engraver"
	}
	\context { \name "BarNumberLine"
		\type "Engraver_group"
		\consists "Axis_group_engraver"
			\override VerticalAxisGroup.default-staff-staff-spacing = #'((basic-distance . 1) (minimum-distance . 1) (padding . 1) (stretchability . 0))
			\override VerticalAxisGroup.staff-staff-spacing = #'((basic-distance . 1) (minimum-distance . 1) (padding . 1) (stretchability . 0))
		\consists "Bar_number_engraver"
			\override BarNumber.font-size = #0
			\override BarNumber.font-series = #'bold
			\override BarNumber.extra-offset = #'(-1 . 0)
	}
	\context { \Score
		\remove "Mark_engraver"
		\remove "Metronome_mark_engraver"
		\remove "Bar_number_engraver"
		\remove "Staff_collecting_engraver"
		\remove "Volta_engraver"
		\accepts TextLine
		\accepts BarNumberLine
	}
}

Indications = {
  \tempo "Un poco Adagio"
  \time 4/4
  s1*20 \bar "|."
}

T = \markup { \bold "TUTTI" }
S = \markup { \bold "SOLO" }
TS = { \repeat unfold 10 { s1^\S s1^\T } }

\score {
  \new Score <<
    \new BarNumberLine \Indications
    \new TextLine << \Indications \TS >>
    \new Staff <<
      \Indications
      { \repeat unfold 20 \repeat unfold 4 e'''4 }
    >>
    \new BarNumberLine \Indications
  >>
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to