]> git.donarmstrong.com Git - lilypond.git/commitdiff
Let copy-repeat-chord return the copy target for efficiency
authorDavid Kastrup <dak@gnu.org>
Thu, 14 Nov 2013 13:26:23 +0000 (14:26 +0100)
committerDavid Kastrup <dak@gnu.org>
Sat, 15 Feb 2014 16:31:28 +0000 (17:31 +0100)
scm/music-functions.scm

index 4329e1c400fce5da4c4edf59be467f257b4f4056..45e07d6f7ae132c8dfcab51b416cc0373f479cdc 100644 (file)
@@ -728,7 +728,8 @@ duration is replaced with the specified @var{duration}."
         (set! (ly:music-property repeat-chord 'articulations)
               (append!
                (set-origin! (ly:music-deep-copy arts))
-               (ly:music-property repeat-chord 'articulations))))))
+               (ly:music-property repeat-chord 'articulations)))))
+  repeat-chord)
 
 
 (define-public (expand-repeat-chords! event-types music)
@@ -747,8 +748,7 @@ respective predecessor chord."
                 last-chord))
            (last-chord
             (set! (ly:music-property music 'duration) '())
-            (copy-repeat-chord last-chord music chord-repeat event-types)
-            music)
+            (copy-repeat-chord last-chord music chord-repeat event-types))
            (else
             (ly:music-warning music (_ "Bad chord repetition"))
             #f)))