]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/staff-size.ly
* Documentation/user/latex-lilypond-example.latex:
[lilypond.git] / input / test / staff-size.ly
index 30c90368d54ac63e20c747bcee9a774497850f42..2ffaf4ec1ce7f16d5da8db4ee771712ebe56d149 100644 (file)
@@ -1,32 +1,23 @@
+\version "2.3.17"
 
-\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."
-}
+\header { texidoc = "@cindex Staff Size
 
-\version "1.5.70"
-\score {
-  \notes \relative c' < \context StaffContainer = SA{
-     \property StaffContainer.StaffSymbol \set #'staff-space = #(/ 16 20)
+In order to change staff sizes, both @code{staff-space} and @code{fontSize}
+must be scaled."
 
-       \property Staff.fontSize = #-1
-       \property Voice.fontSize = #-1
-       
-       \dynamicUp\stemDown
+}
 
-       %\key gis \major
-       c8 d [e f g a] b c \ff
-  }
+\paper { raggedright = ##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
+    }
+>>
 
-\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 { linewidth = -1. }
-}