Jump to content

Changing the staff size: Difference between revisions

From LilyPond wiki
No edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Though the simplest way to resize staves is to use <code>#(set-global-staff-size xx)</code>, an individual staff's size can be changed by scaling the properties <code>'staff-space</code> and <code>fontSize</code>.
Though the simplest way to resize staves is to use <code>#(set-global-staff-size <var>size</var>)</code>, an individual staff’s size can be changed by scaling the properties <code>staff-space</code> and <code>fontSize</code>.


<lilypond version="2.24">
<lilypond version="2.24">
Line 19: Line 19:
</lilypond>
</lilypond>


[[Category:Paper and layout]]
[[Category:Staff notation]]
[[Category:Staff notation]]
[[Category:Staff notation]]
[[Category:Paper and layout]]
[[Category:Tweaks and overrides]]
[[Category:Tweaks and overrides]]
[[Category:Included in the official documentation]][[Category:Snippet]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 09:52, 10 December 2025

Though the simplest way to resize staves is to use #(set-global-staff-size size), an individual staff’s size can be changed by scaling the properties staff-space and fontSize.

\version "2.24"

<<
  \new Staff {
    \relative c'' {
      \dynamicDown
      c8\ff c c c c c c c
    }
  }
  \new Staff \with {
    fontSize = #-3
    \override StaffSymbol.staff-space = #(magstep -3)
  } {
    \clef bass
    c8 c c c c\f c c c
  }
>>