]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/display-lily.scm
Revert "Allow multiple identical slurs (issue 1967)"
[lilypond.git] / scm / display-lily.scm
index 302259fa23eda7d78d9704dc87f0c77fa6edbb15..058534acfe6812a52d844eb24ff29e6e42bd24c5 100644 (file)
@@ -2,7 +2,7 @@
 ;;;
 ;;;
 ;;;
-;;; Copyright (C) 2005--2011 Nicolas Sceaux  <nicolas.sceaux@free.fr>
+;;; Copyright (C) 2005--2012 Nicolas Sceaux  <nicolas.sceaux@free.fr>
 ;;;
 
 ;;; - This file defines the procedures used to define display methods for each
@@ -82,9 +82,12 @@ display method will be called."
 (define* (tweaks->lily-string expr #:optional (post-event? #f))
   (format #f "~{~a ~}"
           (map (lambda (tweak)
-                 (format #f "~a\\tweak #'~a #~a"
+                 (format #f "~a\\tweak ~a #~a"
                          (if post-event? "-" "")
-                         (car tweak)
+                        (if (pair? (car tweak))
+                            (format #f "~a #'~a"
+                                    (caar tweak) (cdar tweak))
+                            (format #f "#'~a" (car tweak)))
                          (scheme-expr->lily-string (cdr tweak))))
                (ly:music-property expr 'tweaks))))