Jump to content

Adjusting the spacing of full measure notes: Difference between revisions

From LilyPond wiki
No edit summary
m New category
 
Line 20: Line 20:
[[Category:Rhythms]]
[[Category:Rhythms]]
[[Category:Spacing]]
[[Category:Spacing]]
[[Category:Tweaks and overrides]][[Category:Snippet]]
[[Category:Tweaks and overrides]]
[[Category:Snippet]]

Latest revision as of 23:38, 21 November 2025

Notes that occupy a complete measure are given some extra spacing from the preceding bar line. This can be adjusted using the full-measure-extra-space property of NonMusicalPaperColumn. The default is 1. A value of zero removes the extra space allowed; -1 removes the space completely. Positive numbers greater than 1 increase the spacing.

\version "2.24"

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

\relative c'' {
  c1
  \override Score.NonMusicalPaperColumn.full-measure-extra-space = #0
  c1
  \override Score.NonMusicalPaperColumn.full-measure-extra-space = #-1
  c1
  \override Score.NonMusicalPaperColumn.full-measure-extra-space = #5
  c1
  \revert Score.NonMusicalPaperColumn.full-measure-extra-space
  c1
  c1
}