[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tuplet full length at breaks with large time signatures
From: |
Juan Cristóbal Cerrillo |
Subject: |
Re: tuplet full length at breaks with large time signatures |
Date: |
Tue, 21 Mar 2017 19:33:17 -0600 |
Yes, many thanks!
I had to add a definition for item-gel-column as it is not defined in 2.18.2
I substituted with this (found on openlilylib)
#(define (get-paper-column grob)
"Return the paper column of a given grob.
This property knows about the rhyhmic position in a score"
(cond
((not (ly:grob? grob)) #f)
((grob::has-interface grob 'paper-column-interface) grob)
(else (get-paper-column
;; Can't use 'X' for axis because 'X' is also a music variable
(ly:grob-parent grob 0)))))
all best,
jc
>
> \version "2.19.57"
>
> #(define (at-line-end? grob)
> ;; Thanks to David Nalesnik
> (let* ((col (ly:item-get-column grob))
> (ln (ly:grob-object col 'right-neighbor))
> (col-to-check (if (ly:grob? ln) ln col)))
> (and (eq? #t (ly:grob-property col-to-check 'non-musical))
> (= -1 (ly:item-break-dir col-to-check)))))