Hello,

currently, ambitus are placed at the very beginning of the first system, before clef and key signature. However, its meaning depends on both: without a clef, the pitches are unspecified, and it’s confusing that accidentals are set based on a key which has not yet been ‘announced’ (See also <https://code.google.com/p/lilypond/issues/detail?id=762>; there used to be a workaround with \set Staff.keySignature = #'() which doesn’t work anymore). I suggest to place the ambitus between key and time signatures, as seen in the attachment. The values in the space-alists are more or less wild guesses, as I don’t have much experience with this kind of settings. Do we really need an entry for ambitus in break-align-orders except for beginning of line?

Yours, Simon
\version "2.19.20"
#(ly:set-option 'point-and-click #f)
\paper { #(set-paper-size "a7") line-width = 50 }
\header { tagline = ##f }

mus = {
  \key ges \major
  d' des''
}

\layout {
  \context {
    \Staff
    \consists "Ambitus_engraver"
  }
}

\markup {
  \vspace #3
  \fill-line { "current default" }
}

\mus

\markup \fill-line { suggestion }

\score {
  \mus
  \layout {
    \context {
      \Score
      \override BreakAlignment.break-align-orders =
      #'#((left-edge
           cue-end-clef
           breathing-sign
           clef
           cue-clef
           staff-bar
           key-cancellation
           key-signature
           ambitus
           time-signature
           custos)
          (left-edge
           cue-end-clef
           breathing-sign
           clef
           cue-clef
           staff-bar
           key-cancellation
           key-signature
           ambitus
           time-signature
           custos)
          (left-edge
           breathing-sign
           clef
           key-cancellation
           key-signature
           ambitus
           time-signature
           staff-bar
           cue-clef
           custos))
    }
    \context {
      \Staff
      \override KeySignature.space-alist =
      #'((ambitus extra-space . 1)
         (time-signature extra-space . 1.15)
         (staff-bar extra-space . 1.1)
         (cue-clef extra-space . 0.5)
         (custos extra-space . 0.5)
         (right-edge extra-space . 0.5)
         (first-note fixed-space . 2.5))
      \override Ambitus.space-alist =
      #'((time-signature extra-space . 1.15)
         (staff-bar extra-space . 1.1)
         (cue-clef extra-space . 0.5)
         (custos extra-space . 0.5)
         (right-edge extra-space . 0.5)
         (first-note fixed-space . 2.5))
      \override Clef.space-alist =
      #'((cue-clef extra-space . 2.0)
         (staff-bar extra-space . 0.7)
         (ambitus extra-space . 1)
         (key-cancellation minimum-space . 3.5)
         (key-signature minimum-space . 3.5)
         (time-signature minimum-space . 4.2)
         (first-note minimum-fixed-space . 5.0)
         (next-note extra-space . 1.0)
         (right-edge extra-space . 0.5))
    }
  }
}
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to