lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: spanner and epsfile


From: Ben
Subject: Re: spanner and epsfile
Date: Wed, 1 Nov 2017 19:47:34 -0400
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

On 11/1/2017 7:28 PM, Thomas Morley wrote:
There was a change in type-predicate for spanner-id. It's now 'key?'.
In process-music of he engraver do

      ((process-music trans)
       ;; Move begun spanners from 'spanners' to 'finished'.  We do this
       ;; on the basis of 'spanner-id.  If we find a match--either
       ;; the strings are the same, or both are unset--a transfer
       ;; can be made.  Return a warning if we find no match: spanner
       ;; hasn't been properly begun.
       (for-each
        (lambda (es)
          (let ((es-id (ly:event-property es 'spanner-id)))
            (let loop ((sp spanners))
              (if (null? sp)
                  (ly:warning "No spanner to end!!")
                  (let ((sp-id (ly:event-property
                                (event-cause (cdar sp)) 'spanner-id)))
                    (cond
                     ((or
                       ;;(and
                       ;; (string? sp-id)
                       ;; (string? es-id)
                       ;; (string=? sp-id es-id))
                       (and
                        (index? sp-id)
                        (index? es-id)
                        (eqv? sp-id es-id))
                       (and
                        (null? sp-id)
                        (null? es-id)))
                      (set! finished (cons (cdar sp) finished))
                      (set! spanners (remove (lambda (s) (eq? s (car
sp))) spanners)))
                     (else (loop (cdr sp)))))))))
        stop-events)


Yes indeed you are right...

This works great, thank you!! :)
(see attached)

Attachment: mult spanner.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]