X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Ftest%2Fstaff-size.ly;h=efab3b285644c391524fe0662b4524ff0806da03;hb=ae58654e4a30248bf2db4b42b3e8f4ea2652ab95;hp=7294c91cfd6983934b33a2fe17add3a19b1c8cd2;hpb=15e565fef41ab50d140c3028bc6d9cff1a43a56a;p=lilypond.git diff --git a/input/test/staff-size.ly b/input/test/staff-size.ly index 7294c91cfd..efab3b2856 100644 --- a/input/test/staff-size.ly +++ b/input/test/staff-size.ly @@ -1,33 +1,26 @@ +\version "2.1.23" -\header { texidoc = "Setting staff sizes is a little clumsy. There -are two options: using StaffContainer and override/revert, or -\outputproperty. Both methods are shown in this example." -} - -\version "1.7.16" -\score { - \notes \relative c' < \context StaffContainer = SA{ - \property StaffContainer.StaffSymbol \set #'staff-space = #(/ 16 20) - - \property Staff.fontSize = #-1 - \property Voice.fontSize = #-1 - - \dynamicUp\stemDown +\header { texidoc = "@cindex Staff Size - %\key gis \major - c8 d e-[ f g a] b c -\ff - } +For setting staff sizes, both @code{staff-space} and @code{fontSize} +must be set." -\context Staff = SB { \dynamicDown c,,4 -\ff c c c } -\context Staff = SC { - \context Staff \outputproperty #(make-type-checker 'staff-symbol-interface) - #'staff-space = #0.8 - \property Staff.fontSize = #-1 - \clef bass - c8 c c c c c c c } -> -\paper { raggedright = ##t} + +\score { + \notes \relative c' << + \new Staff \relative c'' { + \dynamicDown c,,4 \ff c c c + } + \new Staff \with { + fontSize = #-1 + \override StaffSymbol #'staff-space = #(magstep -1) + } { + \clef bass + c8 c c c c c c c + } + >> + \paper { raggedright = ##t} } -%% new-chords-done %% +