Am 25.07.2016 um 12:00 schrieb Malte Meyn:
>
>
> Am 25.07.2016 um 11:44 schrieb Andrew Bernard:
>> So they are tuplet 10/9. Can you not simply set the tuplet numbers
>> accordingly?
>>
>> \once \override TupletNumber.text = "<your numbers here>"
>
> I could. But like my solutions with scaled durations, the input
> doesn’t really reflect the output. And when you have many of these
> tuplets, it’s much to type. So I wondered whether it would be
> possible/nice to have a more flexible \tuplet command.
>
>> What does Scriabin put for the tuplet number?
>
> He uses 5 (IMO the only correct solution, it’s definitely 5 quarters,
> not 10 eights).
How about
\version "2.19.45"
scaledTuplet =
#(define-music-function (ratio frac mus)(integer? fraction? ly:music?)
#{
\once \override TupletNumber.text =
#(format "~a" (/ (car frac) ratio))
\tuplet #frac #mus
#}
)
\relative c' {
\time 9/8
\scaledTuplet 2 10/9 {
c4 c c c c
}
}
?
What I didn't take into account is tuplet's optional argument for the
tuplet spanner duration.
HTH
Urs
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user