Jump to content

Changing the staff size: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
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 xx)</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.0">
<lilypond version="2.24">
<<
<<
   \new Staff {
   \new Staff {

Revision as of 18:53, 16 November 2025

Though the simplest way to resize staves is to use #(set-global-staff-size xx), 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
  }
>>