]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4476: autochange: group multiple rests with the next note
authorDan Eble <nine.fierce.ballads@gmail.com>
Sat, 27 Jun 2015 20:50:24 +0000 (16:50 -0400)
committerDan Eble <nine.fierce.ballads@gmail.com>
Wed, 8 Jul 2015 02:46:19 +0000 (22:46 -0400)
Before this change, only the first rest before a note was kept with
the note.

input/regression/auto-change.ly
scm/autochange.scm

index c89034362ca242c49a39a54896db9f2d5296b67a..493e97c12fdea31d57af5e49d87a2325e70f7c7b 100644 (file)
@@ -13,7 +13,7 @@ note. When central C is reached, staff is not yet switched (by default).
 
 \context PianoStaff <<
   \context Staff = "up" {
-    \autochange  \new Voice << \relative { g4 c e d c r4 a g } >>
+    \autochange  \new Voice << \relative { g4 c e d c8 r r4 a g } >>
   }
   \context Staff = "down" {
     \clef bass 
index 17358aebe038b17986e76b455f0d10f4c1b9bacb..efc91edde179a87c47442d87708aa63dda24e241 100644 (file)
@@ -30,7 +30,7 @@
                                               now)
                                           (if (< dir 0) "down" "up")) acc))
               (generate-split-list
-               (if pitch #f now)
+               (if pitch #f (if change-moment change-moment now))
                dir
                (cdr event-list) acc)))))