lilypond-user
[Top][All Lists]
Advanced

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

Re: Text Spanner, with Text left-aligned to bar-line, and spanner line r


From: David Nalesnik
Subject: Re: Text Spanner, with Text left-aligned to bar-line, and spanner line right-aligned to subsequent bar-line?
Date: Mon, 1 Oct 2012 19:49:45 -0500

Hi again,

>
> Anyway, hope there's some use in this.
>

A bit more streamlined:

#(define (capo grob)
  (let* ((sys (ly:grob-system grob))
         (cols (ly:grob-object sys 'columns))
         (cols-list (ly:grob-array->list cols))
         (nearest-non-musical
           (find
             (lambda (col) (eq? #t (ly:grob-property col 'non-musical)))
             (find-tail
               (lambda (col)
                 (eq? col (ly:grob-object (ly:spanner-bound grob LEFT) 
'axis-group-parent-X)))
               (reverse cols-list)))))

    (ly:spanner-set-bound! grob LEFT nearest-non-musical)))


[use with the same definition of `capoVHalf']



reply via email to

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