Jump to content

Staff line positions: Difference between revisions

From LilyPond wiki
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
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



Revision as of 18:53, 16 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
}