]> git.donarmstrong.com Git - lilypond.git/commitdiff
manual convert-ly: minimum-Y-extent (1298+1299).
authorGraham Percival <graham@percival-music.ca>
Fri, 19 Nov 2010 04:30:41 +0000 (04:30 +0000)
committerGraham Percival <graham@percival-music.ca>
Sat, 20 Nov 2010 19:53:28 +0000 (19:53 +0000)
Patch by Keith O'Hara.

cary.ly used Y-extent to increase space for staves, use
markup-system-spacing instead.

orchestra.ly used Y-extent to created a custom context for rows
rehearsal and tempo marks.  The new way to creat such a row is to
give the context a staff-affinity, and put the spacing
requirements into nonstaff-unrelatedstaff-spacing, etc.  This file
also had its own definition of the \Dynamics context, which is now
built-in.

percussion.itely used Y-extent to produce a spacing to the lyrics
line very similar to what we now get by default.

spacing.itely used Y-extent among other \overrides in an example

ancient.itely used Y-extent to make an invisible staff take up no
space.  The markup can stand alone with no staff.  (If for some
reason a @lilypond must contain notes or skips, then just delete
the 2 lines with minimum-Y-extent.)

The relevant portion of gregorian.ly defined a layout for printing
naked neumes, with no visible staff.  The function of that line,
setting the height of that invisible staff to zero, is not
actually used anywhere in the Google-able portion of lilypond.org,
but the 2.13 equivalent gives the same output the old method, in
case anyone uses this layout to make a vertical stack of naked
neumes.

Documentation/notation/ancient.itely
Documentation/notation/percussion.itely
Documentation/notation/spacing.itely
Documentation/web/ly-examples/cary-layout.ily
Documentation/web/ly-examples/cary.ly
Documentation/web/ly-examples/orchestra.ly
ly/gregorian.ly

index 68e923533eae27353e81c096cb41bcb8acde2689..26347e2df8fbed953f86c5dc8f2f4c89cebc9424 100644 (file)
@@ -742,27 +742,11 @@ different from the default style.  If called for, the natural sign
 will be taken from the @code{vaticana} style.
 
 @lilypond[quote,ragged-right,staffsize=26]
-\score {
-{
-  \textLengthOn
-  s^\markup {
-    \column {
-      "mensural"
-      \line { " " \musicglyph #"accidentals.mensural-1"
-        " " \musicglyph #"accidentals.mensural1" }
-    }
-  }
-}
-\layout {
-  interscoreline = 1
-  \context { \Score \remove "Bar_number_engraver" }
-  \context { \Staff
-      \remove "Clef_engraver"
-      \remove "Key_engraver"
-      \remove "Time_signature_engraver"
-      \remove "Staff_symbol_engraver"
-      \override VerticalAxisGroup #'minimum-Y-extent = ##f
-    }
+\markup {
+  \column {
+    "mensural"
+    \line { " " \musicglyph #"accidentals.mensural-1"
+      " " \musicglyph #"accidentals.mensural1" }
   }
 }
 @end lilypond
@@ -1133,35 +1117,19 @@ Notation Reference:
 Accidentals for the three different Gregorian styles are available:
 
 @lilypond[quote,ragged-right,staffsize=26]
-\score {
-{
-  \textLengthOn
-  s^\markup {
-    \column {
-      "vaticana"
-      \line { " " \musicglyph #"accidentals.vaticana-1"
-        " " \musicglyph #"accidentals.vaticana0" }
-    }
-    \column {
-      "medicaea"
-      \line { " " \musicglyph #"accidentals.medicaea-1" }
-    }
-    \column {
-      "hufnagel"
-      \line { " " \musicglyph #"accidentals.hufnagel-1" }
-    }
+\markup {
+  \column {
+    "vaticana"
+    \line { " " \musicglyph #"accidentals.vaticana-1"
+      " " \musicglyph #"accidentals.vaticana0" }
   }
-}
-\layout {
-  interscoreline = 1
-  \context { \Score \remove "Bar_number_engraver" }
-  \context { \Staff
-      \remove "Clef_engraver"
-      \remove "Key_engraver"
-      \remove "Time_signature_engraver"
-      \remove "Staff_symbol_engraver"
-      \override VerticalAxisGroup #'minimum-Y-extent = ##f
-    }
+  \column {
+    "medicaea"
+    \line { " " \musicglyph #"accidentals.medicaea-1" }
+  }
+  \column {
+    "hufnagel"
+    \line { " " \musicglyph #"accidentals.hufnagel-1" }
   }
 }
 @end lilypond
index 47705007efcc82797ea9574f5bcb7348ea3ac12f..1048b387bce5e3e8d52f8fc984423605ec064bdd 100644 (file)
@@ -249,7 +249,6 @@ mus = \drummode {
        \remove Time_signature_engraver
        \override Stem #'transparent = ##t
        \override Stem #'Y-extent = ##f
-       \override VerticalAxisGroup #'minimum-Y-extent = #'(-4.0 . 5.0)
      } \mus
      \new Lyrics \nam
   >>
index 27aef2095e341083c7b8e0a001c5c93b5f62bcba..773bbf9e48b16cd2f7659547bbb80032ed551232 100644 (file)
@@ -934,9 +934,6 @@ layout.
 @example
 \layout @{
   indent = 2.0\cm
-  \context @{ \Staff
-    \override VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 6)
-  @}
   \context @{ \Voice
     \override TextScript #'padding = #1.0
     \override Glissando #'thickness = #3
index 740a025086fa395377590bbfa370a68b62684b35..480426c48c16232f05f5d72647d014ff7eed7395 100644 (file)
@@ -1,5 +1,5 @@
 
-\version "2.12.0"
+\version "2.13.39"
 
 \layout {
   indent = #0
@@ -35,6 +35,7 @@
   printfirst-page-number = ##t
   print-page-number = ##t
   ragged-last-bottom = ##t
+  markup-system-spacing #'minimum-distance = #25
 }
 
 #(set-global-staff-size 14)
index 9de0de0e4ea6b5721352ba22aa5492f61e93e67a..1b10e17bb2f9a082c5e7e987bb5f898051dc3042 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.12.0"
+\version "2.13.39"
 % the example header file caused the head to be chopped off
 %\include "example-header.ily"
 
@@ -39,7 +39,6 @@
                        \override TupletBracket #'direction = #down
                        \override TupletBracket #'staff-padding = #5
                        \override TupletBracket #'padding = #2.25
-                       \override VerticalAxisGroup #'minimum-Y-extent = #'(10 . 10)
                } <<
                        
                        \new Voice {
                        \override Stem #'direction = #down
                        \override TupletBracket #'staff-padding = #5
                        \override TupletBracket #'padding = #2.25
-                       \override VerticalAxisGroup #'minimum-Y-extent = #'(10 . 10)
                } <<
                        
                        \new Voice \with {
index edcdcc64ce430f6d53cf1e44e2cf674388528fdb..0b43811af395c38da235cf2637a019c407883b8a 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.13.36"
+\version "2.13.39"
 
 \header {
   tagline = ##f
@@ -49,35 +49,8 @@ offCr = {
   \revert DynamicTextSpanner #'style
 }
 
-%% Layout to produce piano dynamics context
+%% Layout for piano dynamics
 \layout {
-  \context {
-    \type "Engraver_group"
-    \name Dynamics
-    \alias Voice
-    \consists "Output_property_engraver"
-    \consists "Axis_group_engraver"
-    \consists "Piano_pedal_engraver"
-    pedalSustainStrings = #'("Ped." "*Ped." "*")
-    pedalUnaCordaStrings = #'("una corda" "" "tre corde")
-    \consists "Script_engraver"
-    \consists "New_dynamic_engraver"
-    \consists "Dynamic_align_engraver"
-    \consists "Text_engraver"
-    \consists "Text_spanner_engraver"
-    \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
-    \override DynamicLineSpanner #'Y-offset = #0
-    \override TextScript #'font-size = #2
-    \override TextSpanner #'bound-details #'left #'stencil-align-dir-y = #CENTER
-    \override TextScript #'font-shape = #'italic
-    \override TextSpanner #'breakable = ##t
-    \override DynamicLineSpanner #'breakable = ##t
-    \override DynamicTextSpanner #'breakable = ##t
-  }
-  \context {
-    \PianoStaff
-    \accepts "Dynamics"
-  }
   \context {
     \Voice
     \override Glissando #'breakable = ##t
@@ -134,7 +107,9 @@ offCr = {
     \consists "Text_engraver"
     \consists "Text_spanner_engraver"
     \consists "Font_size_engraver"
-    \override VerticalAxisGroup #'minimum-Y-extent = #'(-2 . 2 )
+    \override VerticalAxisGroup #'staff-affinity = #DOWN
+    \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing #'padding = #2
+    \override VerticalAxisGroup #'nonstaff-unrelatedstaff-spacing #'padding = #5
     \override TextSpanner #'breakable = ##t
   }
   \context {
index 8fbc6fdee850924ec9bf67fc70989aaa9454ae20..cdb4968161164be9ecc697156f82c2acfbdaa563 100644 (file)
@@ -3,7 +3,7 @@
   $Id$
 %}
 
-\version "2.12.0"
+\version "2.13.39"
 
 %
 % Declare memorable shortcuts for special unicode characters
@@ -293,7 +293,7 @@ neumeDemoLayout = \layout {
        \override StaffSymbol #'transparent = ##t
        \remove "Time_signature_engraver"
        \remove "Bar_engraver"
-       \override VerticalAxisGroup #'minimum-Y-extent = ##f
+       \override VerticalAxisGroup #'staff-staff-spacing = #'()
     }
     \context {
        \Voice