Jump to content

Horizontal centered systems on a page

From LilyPond wiki

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.0"

%% 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 {}
    }
  }
}