Tuplets - GNU LilyPond
Description: GNU LilyPond

Next: Scaling durations, Previous: Augmentation dots, Up: Note entry

#### 6.1.10 Tuplets

Tuplets are made out of a music expression by multiplying all durations with a fraction

    \times fraction musicexpr

The duration of musicexpr will be multiplied by the fraction. The fraction's denominator will be printed over the notes, optionally with a bracket. The most common tuplet is the triplet in which 3 notes have the length of 2, so the notes are 2/3 of their written length

>          g'4 \times 2/3 {c'4 c' c'} d'4 d'4

Tuplets may be nested, for example,

    \set tupletNumberFormatFunction = #fraction-tuplet-formatter
    \times 4/6 {
      a4 a
      \times 3/5 { a a a a a }
    }

##### Predefined commands

`\tupletUp`, `\tupletDown`, `\tupletNeutral`.

##### Commonly tweaked properties

The property `tupletSpannerDuration` specifies how long each bracket should last. With this, you can make lots of tuplets while typing `\times` only once, thus saving lots of typing. In the next example, there are two triplets shown, while `\times` was only used once

>          \set tupletSpannerDuration = #(ly:make-moment 1 4)
>          \times 2/3 { c8 c c c c c }

For more information about `make-moment`, see Time administration.

The format of the number is determined by the property `tupletNumberFormatFunction`. The default prints only the denominator, but if it is set to the Scheme function `fraction-tuplet-formatter`, num:den will be printed instead.

To avoid printing tuplet numbers, use

>          \times 2/3 { c8 c c } \times 2/3 { c8 c c }
>          \override TupletNumber #'transparent = ##t
>          \times 2/3 { c8 c c } \times 2/3 { c8 c c }

##### See also

Program reference: TupletBracket, TupletNumber, and TimeScaledMusic.

Examples: `input/regression/tuplet-nest.ly`.

This page is for LilyPond-2.8.8 (stable-branch).

Other languages: English.
Using automatic language selection.