[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2 or more tuplets
From: |
Jan Nieuwenhuizen |
Subject: |
Re: 2 or more tuplets |
Date: |
16 May 2001 16:29:47 +0200 |
User-agent: |
Gnus/5.090003 (Oort Gnus v0.03) Emacs/20.7 |
Pedro Kröger <address@hidden> 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 <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org
- 2 or more tuplets, Pedro Kröger, 2001/05/16
- Re: 2 or more tuplets,
Jan Nieuwenhuizen <=