Horizontal centered systems on a page: Difference between revisions
Appearance
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: | ||
If you want your systems horizontally centered, as sometimes needed in contemporary music, you have to use a <code>\score</code> inside a <code>\markup</code> construction for every line. | If you want your systems horizontally centered, as sometimes needed in contemporary music, you have to use a <code>\score</code> inside a <code>\markup</code> construction for every line. | ||
<lilypond version="2.24 | <lilypond version="2.24" full> | ||
%% http://lsr.di.unimi.it/LSR/Item?id=701 | %% http://lsr.di.unimi.it/LSR/Item?id=701 | ||
Revision as of 18:57, 16 November 2025
If you want your systems horizontally centered, as sometimes needed in contemporary music, you have to use a \score inside a \markup construction for every line.
\version "2.24"
%% http://lsr.di.unimi.it/LSR/Item?id=701
\paper { tagline = ##f }
%here starts the snippet:
\markup {
\fill-line {
\score {
\relative c' {
c4 d e f \break
}
\layout {}
}
}
}
\markup {
\fill-line {
\score {
\new Staff \with {
\remove Time_signature_engraver
}
\relative c' {
g2 f
}
\layout {}
}
}
}
\markup {
\fill-line {
\score {
\new Staff \with {
\remove Time_signature_engraver
}
\relative c' {
c4 d e f g a b a
}
\layout {}
}
}
}
\markup {
\fill-line {
\score {
\new Staff \with {
\remove Time_signature_engraver
}
\relative c' {
g4 f e g b a g
}
\layout {}
}
}
}