[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tuplets in compound meter
From: |
Urs Liska |
Subject: |
Re: tuplets in compound meter |
Date: |
Mon, 25 Jul 2016 12:21:21 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 |
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