lilypond-user
[Top][All Lists]
Advanced

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

Re: Vertical alignment of RehearsalMarks


From: Peter Crighton
Subject: Re: Vertical alignment of RehearsalMarks
Date: Wed, 18 Mar 2020 14:46:34 +0100

Thanks, Dominic, that helped for the given example, but I see that I need to give a more complete example of the chord chart I am working on.
I also narrowed down the problem: the distance between Staff & ChordNames is not the same in the two lines, but I need it to be for this to work.

Luckily, between writing the first paragraph and this one, I managed to do just that. So below is the complete solution, and this problem is solved (I hope – until I find further problems):

\version "2.20.0"

<<
  \new Staff {
  1*4
  1*4
  }

  \new ChordNames \chordmode {
    \mark #1
    a1 a a a \break
    \mark #1
    \repeat volta 2 {
      a1 a a a
    }
  }
>>

\layout {
  \context {
    \ChordNames
    \consists "Bar_engraver"
    \override BarLine.bar-extent = #'(-2 . 2)

    \consists "Time_signature_engraver"
    \numericTimeSignature

    \override ChordName.Y-extent = ##f
    \override ChordName.Y-offset = -1
    \override ChordName.X-offset = 0.5

    \override VerticalAxisGroup.staff-affinity = ##f
  }

  \context {
    \Staff
    \hide BarLine
    \override Clef.stencil = #point-stencil
    \override StaffSymbol.line-count = 0
    \remove "Time_signature_engraver"

    \override NoteColumn.X-offset = 0.5
    \override VerticalAxisGroup.staff-staff-spacing.basic-distance = 3
  }

  \context {
    \Voice
    \consists "Pitch_squash_engraver"
    \improvisationOn
    \stemUp
    fontSize = -4
  }

  \context {
    \Score
    \remove "Bar_number_engraver"

    proportionalNotationDuration = #(ly:make-moment 1/8)
    \override SpacingSpanner.uniform-stretching = ##t
    \override SpacingSpanner.strict-note-spacing = ##t

    \override BarLine.space-alist.first-note = #'(fixed-space . 0)
    \override Clef.space-alist.first-note = #'(fixed-space . 0)
    \override Clef.space-alist.staff-bar = #'(extra-space . -2)
    \override Clef.space-alist.time-signature = #'(extra-space . -2)
    \override LeftEdge.space-alist.clef = #'(extra-space . 0)
    \override LeftEdge.space-alist.first-note = #'(fixed-space . 0)

    \override RehearsalMark.break-align-symbols = #'(left-edge)
    \override RehearsalMark.outside-staff-priority = ##f
    \override RehearsalMark.Y-offset = 0
    \override RehearsalMark.extra-offset = #'(-4 . -4)
  }
}

\paper {
  indent = 0
  left-margin = 2 \cm
}


--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de


On Wed, 18 Mar 2020 at 04:54, Dominic <address@hidden> wrote:
Hi Peter,

I would suggest the following series of overrides to the
/Score.RehearsalMark/ object:

/\override RehearsalMark.outside-staff-priority = ##f
\override RehearsalMark.Y-offset = #0
\override RehearsalMark.extra-offset = #'(-2 . -0.5)/

This will effectively disable collision avoidance, set the marks on the
middle staff line, and then perform a final aesthetic adjustment as you
desire.

Hope this helps!

Dom





--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html


reply via email to

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