Vertically aligning ossias and lyrics: Difference between revisions
Appearance
No edit summary |
m New category Tags: Mobile edit Mobile web edit |
||
| Line 36: | Line 36: | ||
[[Category:Vocal music]] | [[Category:Vocal music]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Included in the official documentation]][[Category:Snippet]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||
Revision as of 23:18, 21 November 2025
This snippet demonstrates the use of the context properties alignBelowContext and alignAboveContext to control the positioning of lyrics and ossias.
\version "2.24"
\relative c' <<
\new Staff = "1" { c4 c s2 }
\new Staff = "2" { c4 c s2 }
\new Staff = "3" { c4 c s2 }
{ \skip 2
<<
\lyrics {
\set alignBelowContext = "1"
lyrics4 below
}
\new Staff \with {
alignAboveContext = "3"
fontSize = -2
\override StaffSymbol.staff-space = #(magstep -2)
\remove "Time_signature_engraver"
} {
\tuplet 6/4 {
\override TextScript.padding = 3
c8[^"ossia above" d e d e f]
}
}
>>
}
>>
\paper {
ragged-right = ##t
}