Ambitus with multiple voices: Difference between revisions
Appearance
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 Tags: Mobile edit Mobile web edit |
||
| Line 1: | Line 1: | ||
Adding the <code>Ambitus_engraver</code> to the <code>Staff</code> context creates a single ambitus per staff, even in the case of staves with multiple voices. | Adding the <code>Ambitus_engraver</code> to the <code>Staff</code> context creates a single ambitus per staff, even in the case of staves with multiple voices. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
\new Staff \with { | \new Staff \with { | ||
\consists "Ambitus_engraver" | \consists "Ambitus_engraver" | ||
Revision as of 18:46, 16 November 2025
Adding the Ambitus_engraver to the Staff context creates a single ambitus per staff, even in the case of staves with multiple voices.
\version "2.24"
\new Staff \with {
\consists "Ambitus_engraver"
}
<<
\new Voice \relative c'' {
\voiceOne
c4 a d e
f1
}
\new Voice \relative c' {
\voiceTwo
es4 f g as
b1
}
>>