Jump to content

Staff line positions: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m New category
Tags: Mobile edit Mobile web edit
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The vertical positions of staff lines may be specified individually, by setting the <code>line-positions</code> property of the StaffSymbol.
The vertical positions of staff lines may be specified individually, by setting the <code>line-positions</code> property of the StaffSymbol.


<lilypond version="2.24.0">
<lilypond version="2.24">
%% http://lsr.di.unimi.it/LSR/Item?id=224
%% http://lsr.di.unimi.it/LSR/Item?id=224


Line 15: Line 15:
[[Category:Specific notation]]
[[Category:Specific notation]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Snippet]]

Latest revision as of 23:22, 21 November 2025

The vertical positions of staff lines may be specified individually, by setting the line-positions property of the StaffSymbol.

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=224

\new Staff \relative c' {
  \override Staff.StaffSymbol.line-positions = #'(-7 -2 0 3 9)
  g c f b e a
}