Jump to content

Adding ambitus per voice: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 1: Line 1:
Ambitus can be added per voice. In this case, the ambitus must be moved manually to prevent collisions.
Ambitus can be added per voice. In this case, the ambitus must be moved manually to prevent collisions.


<lilypond version="2.24.0">
<lilypond version="2.24">
\new Staff <<
\new Staff <<
   \new Voice \with {
   \new Voice \with {

Revision as of 18:53, 16 November 2025

Ambitus can be added per voice. In this case, the ambitus must be moved manually to prevent collisions.

\version "2.24"

\new Staff <<
  \new Voice \with {
    \consists "Ambitus_engraver"
  } \relative c'' {
    \override Ambitus.X-offset = 2.0
    \voiceOne
    c4 a d e
    f1
  }
  \new Voice \with {
    \consists "Ambitus_engraver"
  } \relative c' {
    \voiceTwo
    es4 f g as
    b1
  }
>>