Jump to content

Making some staff lines thicker than the others: Difference between revisions

From LilyPond wiki
m New category
mNo edit summary
 
Line 1: Line 1:
For educational purposes, a staff line can be thickened (e.g., the middle line, or to emphasize the line of the G clef). This can be achieved by adding extra lines very close to the line that should be emphasized, using the <code>line-positions</code> property of the <code>StaffSymbol</code> object.
For educational purposes, a staff line can be thickened (e.g., the middle line, or to emphasize the line of the G&nbsp;clef). This can be achieved by adding extra lines very close to the line that should be emphasized, using the <code>line-positions</code> property of the <code>StaffSymbol</code> object.


<lilypond version="2.24">
<lilypond version="2.24">
Line 9: Line 9:
</lilypond>
</lilypond>


[[Category:Editorial annotations]]
[[Category:Education]]
[[Category:Education]]
[[Category:Really cool]]
[[Category:Staff notation]]
[[Category:Staff notation]]
[[Category:Editorial annotations]]
[[Category:Really cool]]
[[Category:Workaround]]
[[Category:Workaround]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]
[[Category:Snippet]]

Latest revision as of 18:05, 10 December 2025

For educational purposes, a staff line can be thickened (e.g., the middle line, or to emphasize the line of the G clef). This can be achieved by adding extra lines very close to the line that should be emphasized, using the line-positions property of the StaffSymbol object.

\version "2.24"

{
  \override Staff.StaffSymbol.line-positions =
    #'(-4 -2 -0.2 0 0.2 2 4)
  d'4 e' f' g'
}