Music: Practice & Theory Stack Exchange is a question and answer site for musicians, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was directed by America Luke to this forum site. I hope this is the correct place.

I have a score with a lot of triplets. It's awkward to write always \times 2/3 {c16 d e} \times 2/3 {d e f}.

Since the \times causes not only the duration scaling but also the bracket length you can't use

\times 2/3 {c16 d e   d e f}.

How can this done more efficiently.

share|improve this question

You have to specify the property tupletSpannerDuration to get several tuplets using only one \times command:

\set tupletSpannerDuration = #(ly:make-moment 1 8)
\times 2/3 {c16 d e d e f }

See LilyPond Documentation for more on this.

share|improve this answer

I think that your problem isn't intrinsically with the triplets, but rather with controlling beams; one approach is to manually set the beams:

Running lilypond 2.16 on

\times 2/3 {c16^"Two 3-note phrases"  d e } \times 2/3 { d e f } r4 r2

\times 2/3 { c16^"Manual Beaming" [d e] d [e f] } r4 r2

\set tupletSpannerDuration = #(ly:make-moment 1 8)
\times 2/3 { c16^"Moment & Manual Beaming" [d e] d [e f] } r4 r2


yields this lilypond output

The square brackets in the lilypond file indicate the beams in the same manner as parentheses indicate slurs.

share|improve this answer
Cool! Question: shouldn't the "one six note phrase" really have a "6" over it to indicate the number of notes in one beat? – Carl Witthoft Nov 6 '13 at 15:36
Yeah, the "six note prhase" looks odd, and possibly ambiguous; c.f. (…) – Dave Nov 6 '13 at 15:55
meta: How do you include the graphic in the answer (or question)? – harper Nov 7 '13 at 7:52
Well, all your examples show some inadequate pictures. First (as my example) has correct brackets but wrong beaming. Second and third has a bracket over multiple triplets. I write a piece with triplet over several staves. (as at page 4 of…) It's not a pleasure to find somewhere the bracket number instead about the triplet itself. Isn't there an effective way to write triplets. – harper Nov 7 '13 at 7:59
@CarlWitthoft use \times 4/6 instead, and lilypond will even try to infer the best beaming as available. – SeuMenezes Nov 8 '13 at 5:03

It's worth pointing out that as of LilyPond 2.17.11, you can write

\tuplet 3/2 8 {c16 d e d e f}

and get 3:2 tuplets in groups of duration 8 (in this case, two groups of three tuplets each). This is basically the same as temporarily overriding tupletSpannerDuration.

share|improve this answer

I think, there is no need to restrict the contents of one brace to 3 notes only, so for consecutive triplets, as in your example, a minor compression can be:

\times 2/3 {c16 d e d e f}
share|improve this answer
Ok, since the OP claimed this fouls up the bracket length, can someone post the actual pdfs this code generates? – Carl Witthoft Nov 6 '13 at 13:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.