]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4009: \retrograde fails on slurs
authorDavid Kastrup <dak@gnu.org>
Sun, 13 Jul 2014 13:30:03 +0000 (15:30 +0200)
committerDavid Kastrup <dak@gnu.org>
Fri, 18 Jul 2014 10:15:02 +0000 (12:15 +0200)
The section "Retrograde" in the Notation Reference is affected.
This became likely exposed with issue 2240; the corresponding
regtest does not cover it.  The problem was existent previously
for slurs and other spans inside of chords.

scm/modal-transforms.scm

index 3e31f660e4e7e10fdd3a6a40cf14f3dce7d0b3a8..4200a1f17690518c1b330afa2e43f4cbdd81c941 100644 (file)
@@ -130,9 +130,8 @@ LilyPond scheme pitches, e.g. @code{(ly:make-pitch 0 2 0)}
   "Recurse through @var{music}, extracting pitches.
 Returns a list of pitch objects, e.g
 @code{'((ly:make-pitch 0 2 0) (ly:make-pitch 0 4 0) ... )}
-Typically used to construct a scale for input to transposer-factory
-(see).
-"
+Typically used to construct a scale for input to
+@code{transposer-factory}."
 
   (let ((elements (ly:music-property music 'elements))
         (element (ly:music-property music 'element))
@@ -192,12 +191,15 @@ Typically used to construct a scale for input to transposer-factory
   ;; inversion and retrograding.
 
   (let* ((elements (ly:music-property music 'elements))
+         (arts (ly:music-property music 'articulations))
          (reversed (reverse elements))
          (element (ly:music-property music 'element))
          (span-dir (ly:music-property music 'span-direction)))
 
     (ly:music-set-property! music 'elements reversed)
 
+    (for-each retrograde-music arts)
+
     (if (ly:music? element)
         (ly:music-set-property!
          music 'element