Jump to content

Changing the staff size: Difference between revisions

From LilyPond wiki
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
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>.
The simplest way to resize staves is to use
 
  #(set-global-staff-size <var>size</var>)
 
To resize an individual staff’s size, you can use the properties <code>staff-space</code> and <code>fontSize</code>.


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

Latest revision as of 14:15, 12 January 2026

The simplest way to resize staves is to use

 #(set-global-staff-size size)

To resize an individual staff’s size, you can use 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)
  } \relative c {
    \clef bass c8 c c c c\f c c c
  }
>>