Jump to content

Changing the ambitus gap: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
It is possible to change the default gap between the ambitus noteheads and the line joining them.
It is possible to change the default gap between the ambitus noteheads and the line joining them.


<lilypond version="2.24.0" full>
<lilypond version="2.24">
\layout {
\layout {
   \context {
   \context {
Line 32: Line 32:
   c'4 g''
   c'4 g''
}
}
\paper { tagline = ##f }
</lilypond>
</lilypond>


[[Category:Pitches]]
[[Category:Pitches]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 12:24, 29 November 2025

It is possible to change the default gap between the ambitus noteheads and the line joining them.

\version "2.24"

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

\new Staff {
  \time 2/4
  % Default setting
  c'4 g''
}

\new Staff {
  \time 2/4
  \override AmbitusLine.gap = 0
  c'4 g''
}

\new Staff {
  \time 2/4
  \override AmbitusLine.gap = 1
  c'4 g''
}

\new Staff {
  \time 2/4
  \override AmbitusLine.gap = 1.5
  c'4 g''
}