lilypond-user
[Top][All Lists]
Advanced

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

Distance from beginning of bar to first chord symbol when only displayin


From: Peter Crighton
Subject: Distance from beginning of bar to first chord symbol when only displaying chords
Date: Thu, 9 Mar 2017 18:00:01 +0100

Hello all,

I have a layout for lead sheets that only show chords. Reduced to its relevant features it looks like the one below.
There’s only problem with it: depending on the number of bars in a line, the distance from the barline (or beginning of line) to the first chord symbol in a bar differs, which looks very bad.
Can I somehow specify a fixed distance for every bar, independent from the number of bars per line, without doing so manually for every bar?


\version "2.19.47"

\new ChordNames \chordmode {
  \repeat unfold 2 {
    c1
  } \break
  \repeat unfold 4 {
    c1
  } \break
  \repeat unfold 8 {
    c1
  }
}

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

    \override ChordName.Y-extent = ##f
    \override ChordName.Y-offset = #-0.9
  }

  \context {
    \Score
    \remove "Bar_number_engraver"

    proportionalNotationDuration = #(ly:make-moment 1/2)
    \override SpacingSpanner.uniform-stretching = ##t
  }
}

\paper {
  indent = 0
}


Thanks,
Peter

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

reply via email to

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