]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/slur-ugly.ly
(class New_slur): new file. Score based slur
[lilypond.git] / input / test / slur-ugly.ly
index ae3b58535b9483461e1910fae3d5f64c2485f7ab..e21f7290993c9fbd83aa1410ef3c66c9ba7441a4 100644 (file)
@@ -1,36 +1,35 @@
 
-\version "2.1.7"
+\version "2.3.4"
 
 \header { texidoc="@cindex Slur Ugly
-You can get ugly slurs, if you want. "
+Strange slurs can be produced by setting properties by hand. "
 }
 
-baseWalk = \notes \relative c {
+baseWalk =  \relative c {
   d,8( a' d f a d f d a f d  a)
 }
 
 \score {
-  \notes \context PianoStaff <<
+   \context PianoStaff <<
     \time 6/4
     \context Staff=up { s1 * 6/4 }
     \context Staff=down <<
       \clef bass
-      \autochange Staff \context Voice \baseWalk
+      #(override-auto-beam-setting '(end * * * *)  1 2 'Score)
+      \autochange  \context Voice \baseWalk
     >>
   >>
   \paper {
     raggedright = ##t
-    \translator {
-      \VoiceContext
-      Slur \override #'beautiful = #5.0
-      Slur \override #'direction = #1
-      Stem \override #'direction = #-1
-      autoBeamSettings \override #'(end * * * *)
-        = #(ly:make-moment 1 2)
+    \context {
+      \Voice
+      \override Slur #'beautiful = #5.0
+      \override Slur #'direction = #1
+      \override Stem #'direction = #-1
     }
-    \translator {
-      \PianoStaffContext
-      VerticalAlignment \override #'threshold = #'(5 . 5)
+    \context {
+      \PianoStaff
+      \override VerticalAlignment #'threshold = #'(5 . 5)
     }
   }
 }