]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add \unfoldRepeats to midi
authorTrevor Daniels <t.daniels@treda.co.uk>
Sun, 1 Jun 2008 16:11:44 +0000 (17:11 +0100)
committerTrevor Daniels <t.daniels@treda.co.uk>
Mon, 2 Jun 2008 10:09:40 +0000 (11:09 +0100)
Extend documentation

input/lsr/piano-template-with-centered-dynamics.ly

index 175f29d45dfe350d23874b846e3f0cd67de21d82..316cb4da94c03e387c0b6c664af47a185b7d438f 100644 (file)
@@ -7,7 +7,9 @@
   texidoc = "
 Many piano scores have the dynamics centered between the two staves.
 This requires a bit of tweaking to implement, but since the template is
-right here, you don't have to do the tweaking yourself.
+right here, you don't have to do the tweaking yourself.  Note that
+the two piano staves will move closer together in any system that
+does not contain at least one dynamic marking.
 "
   doctitle = "Piano template with centered dynamics"
 } % begin verbatim
@@ -16,7 +18,7 @@ upper = \relative c'' {
   \clef treble
   \key c \major
   \time 4/4
-  
+
   a4 b c d
 }
 
@@ -24,7 +26,7 @@ lower = \relative c {
   \clef bass
   \key c \major
   \time 4/4
-  
+
   a2 c
 }
 
@@ -53,22 +55,22 @@ pedal = {
       % So that \cresc works, for example.
       \alias Voice
       \consists "Output_property_engraver"
-      
+
       \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
       \override DynamicLineSpanner #'Y-offset = #0
       pedalSustainStrings = #'("Ped." "*Ped." "*")
       pedalUnaCordaStrings = #'("una corda" "" "tre corde")
-      
+
       \consists "Piano_pedal_engraver"
       \consists "Script_engraver"
       \consists "Dynamic_engraver"
       \consists "Text_engraver"
-      
+
       \override TextScript #'font-size = #2
       \override TextScript #'font-shape = #'italic
-      
+
       \consists "Skip_event_swallow_translator"
-      
+
       \consists "Axis_group_engraver"
     }
     \context {
@@ -78,9 +80,11 @@ pedal = {
   }
 }
 \score {
-  \new PianoStaff <<
-    \new Staff = "upper" << \upper \dynamics \pedal >>
-    \new Staff = "lower" << \lower \dynamics \pedal >>
-  >>
+  \unfoldRepeats {
+    \new PianoStaff <<
+      \new Staff = "upper" << \upper \dynamics \pedal >>
+      \new Staff = "lower" << \lower \dynamics \pedal >>
+    >>
+  }
   \midi {}
 }