Pedro Kr�ger <[EMAIL PROTECTED]> writes:

> Hi all,
> 
> I want to have tuplets like this:
> 
>  |--------3:2---------|  (1)
>  |--3:2--| |--5:3--|     (2)


That's not easy, currently.  The problem is that setting a property of
a specific grob is not generally possible; only groups of a certain
kind or flavour of grobs are targetable.  But there are clumsy
workarounds, see below.

Jan.


    #(define (make-text-checker-once text)
      (lambda (grob) (and text-checker-once
                          (if (equal? text (ly-get-grob-property grob 'text))
                              (begin
                                (set! text-checker-once #f) #t)
                              #f))))

    #(define text-checker-once #t)

    \score {
      \notes\relative c'' {

        \property Voice.tupletNumberFormatFunction = #fraction-tuplet-formatter

        \outputproperty #(make-text-checker-once "2:3")
          #'extra-offset = #'(0 . 1)

        \times 2/3 {
          \times 2/3 {
            a a a
          }
          \times 3/5 {
            a a a a a
          }
        }
      }
      \paper { linewidth = -1. }
    }


-- 
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org


_______________________________________________
Gnu-music-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/gnu-music-discuss

Reply via email to