]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/staff-size.ly
Fix and elaborate on input/test/vertical-extent.ly (Thanks Mats).
[lilypond.git] / input / test / staff-size.ly
index 22a056fe3d071e260880c866f7a796734c35a0db..8566df8244496619acb7757b7ce0bb7fbe33637c 100644 (file)
@@ -1,37 +1,23 @@
-#(ly:set-option 'old-relative)
-\version "1.9.4"
+\version "2.7.39"
 
 \header { texidoc = "@cindex Staff Size
 
-Setting staff sizes is a little clumsy.  There are two options: using
-@code{StaffContainer} and override/revert, or
-@code{\outputproperty}. Both methods are shown in this example. "
+In order to change staff sizes, both @code{staff-space} and @code{fontSize}
+must be scaled."
 
 }
 
-\score {
-  \notes \relative c' << \new StaffContainer {
-     \property StaffContainer.StaffSymbol \set #'staff-space = #(/ 16 20)
-
-       \property Staff.fontSize = #-1
-       \property Voice.fontSize = #-1
-       
-       \dynamicUp\stemDown
-
-       %\key gis \major
-       c8 d  e[ f g a] b c \ff
-  }
-
-\new Staff \relative c'' { \dynamicDown c,,4 \ff c c c  }
-\new Staff {
-  \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
-}
+\layout { ragged-right = ##t}
+
+\relative c' <<
+%    \new Staff \relative c'' { \dynamicDown c4 \ff c c c }
+    \new Staff \with {
+       fontSize = #-3
+       \override StaffSymbol #'staff-space = #(magstep -3)
+    } {
+       \clef bass
+       c8 c c c  c c c c
+    }
 >>
-\paper { raggedright = ##t}
-}