X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fdisplay-lily.scm;h=16f809fc8bca2306e6c71d57cc5722bdfdc009fc;hb=32a34dcef0c0041c6d62677487a380b5c8b85712;hp=302259fa23eda7d78d9704dc87f0c77fa6edbb15;hpb=f41973ff763d5972a85995b6d40c864281ec6714;p=lilypond.git diff --git a/scm/display-lily.scm b/scm/display-lily.scm index 302259fa23..16f809fc8b 100644 --- a/scm/display-lily.scm +++ b/scm/display-lily.scm @@ -2,7 +2,7 @@ ;;; ;;; ;;; -;;; Copyright (C) 2005--2011 Nicolas Sceaux +;;; Copyright (C) 2005--2012 Nicolas Sceaux ;;; ;;; - 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)))) @@ -282,8 +285,7 @@ inside body." (define *max-element-number-before-break* (make-parameter 6)) ;; \times factor (used in durations) -(define *time-factor-denominator* (make-parameter #f)) -(define *time-factor-numerator* (make-parameter #f)) +(define *time-scale* (make-parameter 1)) (define *current-context* (make-parameter 'Bottom))