summaryrefslogtreecommitdiff
path: root/ly
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2016-08-15 17:40:05 +0200
committerDavid Kastrup <dak@gnu.org>2016-08-21 18:59:39 +0200
commitb757ca820a230ef7393f6ed81e6aceda723caf26 (patch)
tree0881d667d68301e215e018cf2d2ec9ecc005a75a /ly
parent4be8026d2324f2c32774f26255e719a7c71c5969 (diff)
Issue 4956/1: Let \retrograde expand repeat chords/notes
Since those lose their point of reference, expanding them prior to retrograding keeps the results sane.
Diffstat (limited to 'ly')
-rw-r--r--ly/music-functions-init.ly7
1 files changed, 6 insertions, 1 deletions
diff --git a/ly/music-functions-init.ly b/ly/music-functions-init.ly
index ee9fdb8c20..76c2ec64b8 100644
--- a/ly/music-functions-init.ly
+++ b/ly/music-functions-init.ly
@@ -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