lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Gets rid of length in the docs. (issue 4965053)


From: mtsolo
Subject: Gets rid of length in the docs. (issue 4965053)
Date: Sun, 28 Aug 2011 10:12:58 +0000

Reviewers: ,

Message:
This gets rid of Stem #'length in the docs.  I haven't run make doc yet,
but I will right after this and will report back in a couple hours with
a new patch that makes any additional necessary changes.

Cheers,
MS

Description:
Gets rid of length in the docs.

Please review this at http://codereview.appspot.com/4965053/

Affected files:
  M Documentation/cs/learning/tweaks.itely
  M Documentation/essay/engraving.itely
  M Documentation/extending/programming-interface.itely
  M Documentation/learning/tweaks.itely
  M Documentation/notation/ancient.itely
  M Documentation/notation/keyboards.itely
  M Documentation/snippets/new/displaying-complex-chords.ly
  M Documentation/web/ly-examples/bach-schenker.ly
  M Documentation/web/ly-examples/cary.ly
  M Documentation/web/ly-examples/granados.ly


Index: Documentation/cs/learning/tweaks.itely
diff --git a/Documentation/cs/learning/tweaks.itely b/Documentation/cs/learning/tweaks.itely index 64592c60fa60a368f4bc19d6c45f4b0886e5e258..f9b1db76fa2264e5af35d1efefb8f455f300ae37 100644
--- a/Documentation/cs/learning/tweaks.itely
+++ b/Documentation/cs/learning/tweaks.itely
@@ -3812,7 +3812,7 @@ gesetzt wird:
 <<
   {
     \once \override Stem #'transparent = ##t
-    \once \override Stem #'length = #8
+    \once \override Stem #'Y-extent = #(stem::length 8)
     b8~ b\noBeam
   }
 \\
Index: Documentation/essay/engraving.itely
diff --git a/Documentation/essay/engraving.itely b/Documentation/essay/engraving.itely index 7001fa4f68f4ae09cc81515461293568656ca7c9..e7108eea2f7adea894cedd703cc2f3b3bc5472d0 100644
--- a/Documentation/essay/engraving.itely
+++ b/Documentation/essay/engraving.itely
@@ -1100,7 +1100,7 @@ consider a more complicated musical example:
         \stemUp g,( c}
       r4
       \override Stem #'cross-staff = ##t
-      \override Stem #'length = #12
+      \override Stem #'Y-extent = #(stem::length 12)
       <fis, b>) r\fermata
     }
   >>
Index: Documentation/extending/programming-interface.itely
diff --git a/Documentation/extending/programming-interface.itely b/Documentation/extending/programming-interface.itely index 71865e7788d009dbe7bfe55f25f539128fb3cf39..57c91bc9dfa0c7b32cd2c47fd3f0ca1d5b4af6af 100644
--- a/Documentation/extending/programming-interface.itely
+++ b/Documentation/extending/programming-interface.itely
@@ -216,13 +216,13 @@ AltOn =
      (parser location mag)
      (number?)
    #{
-     \override Stem #'length = $(* 7.0 mag)
+     \override Stem #'Y-extent = $(stem::length (* 7.0 mag))
      \override NoteHead #'font-size =
        $(inexact->exact (* (/ 6.0 (log 2.0)) (log mag)))
    #})

 AltOff = {
-  \revert Stem #'length
+  \revert Stem #'Y-extent
   \revert NoteHead #'font-size
 }

@@ -241,11 +241,11 @@ withAlt =
      (parser location mag music)
      (number? ly:music?)
    #{
-     \override Stem #'length = $(* 7.0 mag)
+     \override Stem #'Y-extent = $(stem::length (* 7.0 mag))
      \override NoteHead #'font-size =
        $(inexact->exact (* (/ 6.0 (log 2.0)) (log mag)))
      $music
-     \revert Stem #'length
+     \revert Stem #'Y-extent
      \revert NoteHead #'font-size
    #})

Index: Documentation/learning/tweaks.itely
diff --git a/Documentation/learning/tweaks.itely b/Documentation/learning/tweaks.itely index a13fff3fe00d44c8d13b86d672f8a860502d1ba1..7fd632eac6fe460fac36d868709bb841815507dc 100644
--- a/Documentation/learning/tweaks.itely
+++ b/Documentation/learning/tweaks.itely
@@ -3483,7 +3483,7 @@ too much, we can lengthen the stem by setting the
   {
     \once \override Stem #'transparent = ##t
     \once \override Flag #'transparent = ##t
-    \once \override Stem #'length = #8
+    \once \override Stem #'Y-extent = #(stem::length 8)
     b8~ b\noBeam
   }
 \\
Index: Documentation/notation/ancient.itely
diff --git a/Documentation/notation/ancient.itely b/Documentation/notation/ancient.itely index 55b4aead72d46b0d83e6e6bbd0e268099d40dff0..473032417b36dc08419d97a001ec1db44c28d4b5 100644
--- a/Documentation/notation/ancient.itely
+++ b/Documentation/notation/ancient.itely
@@ -2506,7 +2506,7 @@ However, in some transcription styles, stems are used
 occasionally, for example to indicate the transition from a
 single-tone recitative to a fixed melodic gesture.  In these cases,
 one can use either @code{\override Stem #'transparent = ##t} or
address@hidden Stem #'length = #0} instead, and restore the stem
address@hidden Stem #'Y-extent = #'(0 . 0)} instead, and restore the stem
 when needed with the corresponding @code{\once \override Stem
 #'transparent = ##f} (see example below).  When using stems that
 carry flags, make sure to set @code{\override Flag #'transparent
Index: Documentation/notation/keyboards.itely
diff --git a/Documentation/notation/keyboards.itely b/Documentation/notation/keyboards.itely index a7b3394417b9e13fd5b2afa3960d7efc1eb392e1..59348b2f1a5403f1c7c902c81189a1159bb01801 100644
--- a/Documentation/notation/keyboards.itely
+++ b/Documentation/notation/keyboards.itely
@@ -435,7 +435,7 @@ Chords that cross staves may be produced:
         % stems may overlap the other staff
         \override Stem #'cross-staff = ##t
         % extend the stems to reach the other staff
-        \override Stem #'length = #12
+        \override Stem #'Y-extent = #(stem::length 12)
         % do not print extra flags
         \override Flag #'style = #'no-flag
         % prevent beaming as needed
Index: Documentation/snippets/new/displaying-complex-chords.ly
diff --git a/Documentation/snippets/new/displaying-complex-chords.ly b/Documentation/snippets/new/displaying-complex-chords.ly index f3efe63b7c2d6f9a109eb1ca5b0ebed2c6b5416a..fd9c0eb4bf3adb20d1b8211641e540891fe5430a 100644
--- a/Documentation/snippets/new/displaying-complex-chords.ly
+++ b/Documentation/snippets/new/displaying-complex-chords.ly
@@ -10,7 +10,7 @@ with different accidentals.
 }

 fixA = {
-  \once \override Stem #'length = #9
+  \once \override Stem #'Y-extent = #(stem::length 9)
 }
 fixB = {
   \once \override NoteHead #'X-offset = #1.7
Index: Documentation/web/ly-examples/bach-schenker.ly
diff --git a/Documentation/web/ly-examples/bach-schenker.ly b/Documentation/web/ly-examples/bach-schenker.ly index a69afab420955fc7ef6f669854b4564ea526912b..ac2c2d03f9f99d93b685f5b90d0d6acbd0ff5f18 100644
--- a/Documentation/web/ly-examples/bach-schenker.ly
+++ b/Documentation/web/ly-examples/bach-schenker.ly
@@ -93,48 +93,48 @@ staffPiano = \new PianoStaff {
             \override Slur #'color = #(x11-color "violet")
             \override PhrasingSlur #'color = #(x11-color "violet")
            \override Stem #'transparent = ##t
-           \override Stem #'length = #0
+           \override Stem #'Y-extent = #'(0 . 0)
             % Add color to text markups in top staff
            g4_\( fis^(_\markup { \with-color #blue \tiny N } g)\)
            a^(^\markup { \with-color #blue \tiny P } b2)
            b4^(^\markup { \with-color #blue \tiny P }
            \stemUp
            \revert Stem #'transparent
-           \override Stem #'length = #10
+           \override Stem #'Y-extent = #(stem::length 10)
            c8)^( s
-           \override Stem #'length = #14
+           \override Stem #'Y-extent = #(stem::length 14)
            b4) s s
-           \override Stem #'length = #0
+           \override Stem #'Y-extent = #'(0 . 0)
            \override Stem #'transparent = ##t
            \once \override Slur #'extra-offset = #'(0 . 0.35)
             % Add color to remaining text markup in top staff
            c4^\( b_(_\markup { \with-color #blue \tiny P } a)\) s2
-           \revert Stem #'length
+           \revert Stem #'Y-extent
          }
        \\
          {
            \override Stem #'transparent = ##t
            \override NoteHead #'transparent = ##t
-           \override Stem #'length = #0
+           \override Stem #'Y-extent = #'(0 . 0)
            s1 s4 e4 s
            \change Staff = "LH"
            fis,4 s2
            \revert Stem #'transparent
            \revert NoteHead #'transparent
-           \revert Stem #'length
+           \revert Stem #'Y-extent
          }
        \\
          {
            \override Stem #'transparent = ##t
            \override NoteHead #'transparent = ##t
-           \override Stem #'length = #0
+           \override Stem #'Y-extent = #'(0 . 0)
            s1 s s2
            fis'4 s
            \change Staff = "LH"
            g,4 s s2
            \revert Stem #'transparent
            \revert NoteHead #'transparent
-           \revert Stem #'length
+           \revert Stem #'Y-extent
          }
        >>
        \bar "|."
@@ -176,7 +176,7 @@ staffPiano = \new PianoStaff {
             \override Slur #'color = #(x11-color "violet")
            \override Stem #'transparent = ##t
            \once \override NoteHead #'transparent = ##t
-           \override Stem #'length = #0
+           \override Stem #'Y-extent = #'(0 . 0)
            g'4
            \once \override TextScript #'padding = #0.25
             % Add color to text markups in bottom staff
@@ -190,13 +190,13 @@ staffPiano = \new PianoStaff {
            \once \override Slur #'extra-offset = #'(0 . 0.5)
            \I fis,4_(
            \revert Stem #'transparent
-           \override Stem #'length = #10
+           \override Stem #'Y-extent = #(stem::length 10)
            \stemDown
            g4) s
            \once \override Slur #'extra-offset = #'(0 . 0.25)
            \I c8_( s
            \override Stem #'transparent = ##t
-           \revert Stem #'length
+           \revert Stem #'Y-extent
            a4)
            \once \override NoteHead #'transparent = ##t
            \I d4^( d,4) s2
@@ -230,7 +230,7 @@ staffPiano = \new PianoStaff {
             \override Slur #'color = #(x11-color "violet")
            \override Stem #'transparent = ##t
            \override NoteHead #'transparent = ##t
-           \override Stem #'length = #0
+           \override Stem #'Y-extent = #'(0 . 0)
            \stemDown
            \once \override Slur #'height-limit = #3
            \once \override Slur #'extra-offset = #'(0 . 0.25)
@@ -247,7 +247,7 @@ staffPiano = \new PianoStaff {
            \slurDashed
            \once \override Slur #'height-limit = #6.0
            \once \override Slur #'extra-offset = #'(0.5 . -0.25)
-           \override Stem #'length = #0
+           \override Stem #'Y-extent = #'(0 . 0)
            g4_( s2. s1 g,4) s s1 s2
            \revert Stem #'transparent
            \revert NoteHead #'transparent
Index: Documentation/web/ly-examples/cary.ly
diff --git a/Documentation/web/ly-examples/cary.ly b/Documentation/web/ly-examples/cary.ly index 1990a690a39946cc3e20de16eba6194a8ca791a6..e9ff69c3193cb6cf5833ce6c18664b0a4e76e71e 100644
--- a/Documentation/web/ly-examples/cary.ly
+++ b/Documentation/web/ly-examples/cary.ly
@@ -320,7 +320,7 @@
                                \override NoteHead #'transparent = ##t
                                \override NoteHead #'no-ledgers = ##t
                                \override Rest #'staff-position = #-18
-                               \override Stem #'length = #10
+                               \override Stem #'Y-extent = #(stem::length 10)
                                \override Beam #'positions = #'(-13 . -13)
                                \override DynamicLineSpanner #'staff-padding = 
#18
\override TextSpanner #'(bound-details left text) = #(markup (#:italic "covered"))
Index: Documentation/web/ly-examples/granados.ly
diff --git a/Documentation/web/ly-examples/granados.ly b/Documentation/web/ly-examples/granados.ly index 4521e658d070b89168afe54b2cc9f1a3560a7fbf..d0658c38d603d26a279caf756399d76764b3c4c4 100644
--- a/Documentation/web/ly-examples/granados.ly
+++ b/Documentation/web/ly-examples/granados.ly
@@ -56,18 +56,18 @@ upperVoiceTwo = \relative c'' {
   s8 c8\< <bes, f'>[ <bes aes'> c' <bes, d fis>\!]
   s32 s32_\appassmolto s8. \voiceOne r8 <bes'' es bes'>-> s4
   \override Stem #'cross-staff = ##t
-  \override Stem #'length = #28
+  \override Stem #'Y-extent = #(stem::length 28)
   \override Flag #'style = #'no-flag
   s8 \voiceTwo g,8 aes4 s4
 }

 middleVoiceOne = \relative c' {
   \override Stem #'cross-staff = ##t
-  \override Stem #'length = #32
+  \override Stem #'Y-extent = #(stem::length 32)
   \override Flag #'style = #'no-flag
   d!8\noBeam s8 s8 s8_\crmolto s4  % 1
   s4 <g bes\arpeggio>8[ <es' g>] \voiceOne e,8( dis16 e) | % 2
-  \revert Stem #'length
+  \revert Stem #'Y-extent
   \revert Stem #'cross-staff
   \showStaffSwitch
   \csh \stemUp f4 s2
@@ -77,7 +77,7 @@ middleVoiceOne = \relative c' {
 middleVoiceTwo = \relative c' {
   s2. | % 1
   \override Stem #'cross-staff = ##t
-  \override Stem #'length = #24
+  \override Stem #'Y-extent = #(stem::length 24)
   \override Flag #'style = #'no-flag
   s2 \voiceTwo e!4 | % 2
s4 \voiceTwo <bes c es f>8 <f' aes es'>16 d' <bes, f' aes c>8 <bes' fis'> | % 3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]