]> git.donarmstrong.com Git - lilypond.git/commitdiff
Make chord repeats q ignore <>
authorDavid Kastrup <dak@gnu.org>
Sun, 6 May 2012 15:52:29 +0000 (17:52 +0200)
committerDavid Kastrup <dak@gnu.org>
Tue, 8 May 2012 16:19:41 +0000 (18:19 +0200)
scm/music-functions.scm

index 84055ed9addd552432c11ecba6afec558ef5a98f..559eae3c3ff300e04e2a0eed635ea678e32d37ff 100644 (file)
@@ -653,7 +653,11 @@ respective predecessor chord."
        (let ((chord-repeat (ly:music-property music 'duration)))
          (cond
           ((not (ly:duration? chord-repeat))
-           music)
+           (if (any (lambda (m) (ly:duration?
+                                 (ly:music-property m 'duration)))
+                    (ly:music-property music 'elements))
+               music
+               last-chord))
           (last-chord
            (set! (ly:music-property music 'duration) '())
            (copy-repeat-chord last-chord music chord-repeat event-types)