Jump to content

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

From LilyPond wiki
No edit summary
m New category
Line 14: Line 14:
[[Category:Really cool]]
[[Category:Really cool]]
[[Category:Workaround]]
[[Category:Workaround]]
[[Category:Included in the official documentation]][[Category:Snippet]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Revision as of 23:20, 21 November 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'
}