]> git.donarmstrong.com Git - lilypond.git/commitdiff
* input/test/slur-beautiful.ly (Module): remove
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 28 Aug 2004 16:14:54 +0000 (16:14 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 28 Aug 2004 16:14:54 +0000 (16:14 +0000)
* input/test/slur-attachment-override.ly (Module): remove

* lily/slur-quanting.cc (after_line_breaking): only do scoring
when less than 4 control-points.

* lily/slur-quanting.cc (get_bezier): new functionality, blow up
slur depending on extents of note heads.

ChangeLog
input/test/slur-attachment-override.ly [deleted file]
input/test/slur-beautiful.ly [deleted file]
input/test/slur-manual.ly
lily/slur-quanting.cc

index cf395f8e94f79b8861e4bbb9422a3641c4fde1b5..6ecb6fa610d3a90f7bffbc988d035089d87a27b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2004-08-28  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * input/test/slur-beautiful.ly (Module): remove
+
+       * input/test/slur-attachment-override.ly (Module): remove
+
+       * lily/slur-quanting.cc (after_line_breaking): only do scoring
+       when less than 4 control-points.
+
        * lily/key-signature-interface.cc: add style.
 
        * Documentation/user/notation.itely (Automatic staff changes):
diff --git a/input/test/slur-attachment-override.ly b/input/test/slur-attachment-override.ly
deleted file mode 100644 (file)
index 7cea323..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-
-\version "2.3.8"
-
-\header{
-texidoc="@cindex Slur Attachment Override
-In some cases, you may want to control the attachment points of a slur 
-by hand. "
-}
-
-
-%%
-%% except that both slurs are stem <<-> stem.
-%%
-
-fragment =  {
-  \set autoBeaming = ##f
-  \override Stem  #'direction = #1
-  \override Slur  #'direction = #1
-  d'32( f'4  d8..)
-  \override Slur  #'attachment = #'(stem . stem)
-  d,32( f'4  d8.)
-}
-
-
-\score {
-       \relative c \fragment
-       \paper { raggedright = ##t} 
-}
-
diff --git a/input/test/slur-beautiful.ly b/input/test/slur-beautiful.ly
deleted file mode 100644 (file)
index 1aaf89f..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-
-\version "2.3.8"
-
-\header { texidoc ="@cindex Slur Beautiful
-The curvature of a slur is adjusted to stay away from note heads and 
-stems. When the curvature would increase much, the slur is reverted 
-to its default shape.  The Slur's property @code{beautiful} (which is 
-loosely related to the enclosed area between the slur and the notes)
-controls the transition point, and by increasing that value you may
-keep slurs more curved.
-"
-}
-
-\score {  {\relative c' {
-  \stemDown \slurUp
-  c16( a' f' a a f a, c,)
-  c( a' f' a a f d, c)
-  \override Slur  #'beautiful = #5.0
-  c( a' f' a a f d, c)
-}}
-\paper { raggedright = ##t }
-}
index edfbb8d1d928e03e76953893ed88050277b8f6ce..5d3ce7cb260b7d0c6912a317e6f629f8110ef57a 100644 (file)
@@ -22,7 +22,7 @@
            {
            \clef bass
            r4 r8
-           \once\override Slur  #'extra-offset = #'(0 . -8)
+           \once\override Slur  #'extra-offset = #'(0 . 6)
            \once\override Slur  #'control-points =
            #'((0 . -4) (2 . 0) (60 . 0) (63 . 4))
            c8( as' f c' as
@@ -38,6 +38,6 @@
            f' c as' f c'4)
        }>>
     >>
-    \paper { raggedright = ##t }
+    \paper {  }
 }
 
index 9f9bde87b704218c97b37e90077f0238e0e2e50a..c25d5c53df7b4ccefcb1f4ccfa4a6110534a2ecf 100644 (file)
@@ -380,7 +380,8 @@ New_slur::after_line_breaking (SCM smob)
   if (!get_grob_direction (me))
     set_grob_direction (me, get_default_dir (me));
 
-  set_end_points (me);
+  if (scm_ilength (me->get_property ("control-points")) < 4)
+    set_end_points (me);
 
   return SCM_UNSPECIFIED;
 }
@@ -431,6 +432,9 @@ get_bound_info (Spanner* me, Grob **common)
 void
 set_end_points (Grob *me)
 {
+
+  
+  
   Link_array<Grob> columns
     = Pointer_group_interface__extract_grobs (me, (Grob *) 0, "note-columns");
 
@@ -1194,7 +1198,10 @@ get_bezier (Grob *me,
        continue;
 
       Encompass_info inf (get_encompass_info (me, encompasses[i], common));
-      avoid.push (Offset (inf.x_, inf.head_ +  dir * score_param->free_head_distance_));
+
+      Real y = dir*((dir * inf.head_) >? (dir *inf.stem_));
+      
+      avoid.push (Offset (inf.x_,  y + dir * score_param->free_head_distance_));
     }
   
   Offset dz = attachments[RIGHT]- attachments[LEFT];;
@@ -1239,8 +1246,6 @@ get_bezier (Grob *me,
   curve.control_[1] = attachments[LEFT] + dz_perp * height * dir + dz_unit * x1;
   curve.control_[2] = attachments[RIGHT] + dz_perp * height * dir + dz_unit * x2;
   curve.control_[3] = attachments[RIGHT];
-
-  
   
   return curve;
 }