]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4956/1: Let \retrograde expand repeat chords/notes
authorDavid Kastrup <dak@gnu.org>
Mon, 15 Aug 2016 15:40:05 +0000 (17:40 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 21 Aug 2016 16:59:39 +0000 (18:59 +0200)
Since those lose their point of reference, expanding them
prior to retrograding keeps the results sane.

ly/music-functions-init.ly

index ee9fdb8c2064b604e8123b0032bdd730f41d5f99..76c2ec64b882f079ec9fbf441076cfc30a305631 100644 (file)
@@ -1551,7 +1551,12 @@ retrograde =
 #(define-music-function (music)
     (ly:music?)
     (_i "Return @var{music} in reverse order.")
-    (retrograde-music music))
+    (retrograde-music
+     (expand-repeat-notes!
+      (expand-repeat-chords!
+       (cons 'rhythmic-event
+             (ly:parser-lookup '$chord-repeat-events))
+       music))))
 
 revertTimeSignatureSettings =
 #(define-music-function