Jump to content

Setting the extent of objects

From LilyPond wiki

The object may be extended to larger sized by overriding their properties. The lyrics in this example have an extent of (-10,10), which is why they are spaced so widely.

\version "2.24.0"

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

\score {
  \context Lyrics \lyricmode {
    foo --
    
    \override LyricText.X-extent = #'(-10.0 . 10.0)
    bar baz
  }
  \layout { raggedright = ##t }
}