]> git.donarmstrong.com Git - lilypond.git/commitdiff
(enumerate_attachments): use stem_extent_
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 30 Oct 2004 17:36:18 +0000 (17:36 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 30 Oct 2004 17:36:18 +0000 (17:36 +0000)
for attaching, fixes slur/stem left attachment of
downslur/downstem.

ChangeLog
input/regression/new-slur.ly
input/regression/quote.ly
input/regression/rhythmic-staff.ly
input/regression/slur-area.ly [deleted file]
input/regression/slur-attachment.ly [deleted file]
lily/slur-scoring.cc

index 49ad00c3fc7b41e0551f11fe64bfb00f97a64195..b17fa9ec4d59ddb87d2d393329f60d4b09526257 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2004-10-30  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * lily/slur-scoring.cc (enumerate_attachments): use stem_extent_
+       for attaching, fixes slur/stem left attachment of
+       downslur/downstem.
+
        * lily/quote-iterator.cc (process): use <= for comparisons. Fixes
        quote problem if for last note of quoted sequence. 
 
index 8d26f5458dad931c855fc0a5dc57dafac09ba637..4ae1122024f22c8a2ba5e7f0861f58c1dcdddb78 100644 (file)
     e4( dis4) 
     g='16( b d fis)
     \clef bass a=8[ e16(f] g[ a b d,)]  s4 | \break
-    e=8( f] g[ a b d,)]  s4 | \break
+    e=8[( f] g[ a b d,)]  s4 |
     
     \clef treble
+    \new Voice {
+       \slurDown
+       c=''4( d, c') s4
+    }
     \new Voice \relative c'' {
        \slurDown f2( d4 f | g c a f | d c f2 | f1) |
     }
index f633c5db3cbf81c606470b34db338be83e63214d..dd0dd1e9706e13571a5f444e8d5ea08b6a950034 100644 (file)
@@ -28,6 +28,7 @@ original = \relative c'' { c8 d s2 es8 gis8 }
        \original
     }
     \new Staff \relative c'' <<
+       \set Staff.instrument = "orig+quote"    
        \set Staff.quotedEventTypes = #'(note-event articulation-event)
        \original
        \new Voice {
index bb321df3b08f33eb9fb27da4a0a541740466cb51..80c67a8b34277ae71b618f7461efa7e83af60e6e 100644 (file)
@@ -2,8 +2,9 @@
 \header
 {
 
-    texidoc = "In rhythmic staves stems should go up, and bar lines have the size for a  5 line staff. The whole note hangs from the rhythmic staff."
-}
+    texidoc = "In rhythmic staves stems should go up, and bar lines
+have the size for a 5 line staff. The whole rest hangs from the
+rhythmic staff."  }
 
 \layout { raggedright = ##t }
 
diff --git a/input/regression/slur-area.ly b/input/regression/slur-area.ly
deleted file mode 100644 (file)
index 8f60aa2..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-
-\version "2.3.22"
-\header {
-    
-    texidoc = "The area underneath an (up) slur is minimised to improve the shape. "
-
-}
-
-\score{
-\relative c''{
-
-\slurUp
-\stemDown
-a(a' a, a)
-a(a a' a,)
-a(d a a)
-a(a d a)
-
-e'8(e e e e e e e)
-a,8(d a a a a a a)
-a(a a a a a d a)
-
-c,(g' c e f d b g) 
-c,(g' c e f d b g) 
-
-\set autoBeaming = ##f
-\stemUp
-a8(a a a a a a a)
-
-}
-\layout{
-indent=0.0\mm
-}
-}
-
diff --git a/input/regression/slur-attachment.ly b/input/regression/slur-attachment.ly
deleted file mode 100644 (file)
index 0016c11..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-
-\version "2.3.22"
-
-\header{
-texidoc="
-Slurs should be attached to note heads, except when they would collide
-with beams.  
-"
-}
-\score{
-        \relative c''{
-               \override Slur  #'direction = #1
-               a8( a a4)
-               a4( a8 a)
-               a8 a(a4)
-               a4( a8) a
-       }
-       \layout{ 
-               indent = 0.0
-               linewidth = 100.\mm
-       }
-}
-
index 8543c9e90486763b5fa5cce0af980ce309c67d59..48799e2e0f775d329e344b4e230584270f919e81 100644 (file)
@@ -619,15 +619,14 @@ Slur_score_state::enumerate_attachments (Drul_array<Real> end_ys) const
                {
                  Interval stem_y = extremes_[d].stem_extent_[Y_AXIS];
                  stem_y.widen (0.25 * staff_space_);
-                 if (dir_ == -d
-                     && stem_y.contains (os[d][Y_AXIS]))
+                 if (stem_y.contains (os[d][Y_AXIS]))
                    {
-                     os[d][X_AXIS] =  extremes_[d].slur_head_extent_[-d]
+                     os[d][X_AXIS] = extremes_[d].stem_extent_[X_AXIS][-d]
                        - d * 0.3;
                      attach_to_stem[d] = true;
                    }
-                 else if (dir_ *extremes_[d].stem_extent_[Y_AXIS][dir_]
-                            < dir_ * os[d][Y_AXIS]
+                 else if (dir_ * extremes_[d].stem_extent_[Y_AXIS][dir_]
+                          < dir_ * os[d][Y_AXIS]
                           && !extremes_[d].stem_extent_[X_AXIS].is_empty ()
                           )