Create a tuplet.

tuplet(duration, ...)

Arguments

duration

A duration notation, duration value, or Duration object.

...

Tupler objects returned by Tupler(), which specify how to divide the argument duration into parts, and how to take from these parts.

Value

A list with class Duration.

See also

Tupler()

vignette("gm", package = "gm") for a friendly guide to tuplets.

Examples

# create a triplet quarter note
tuplet("half", Tupler(3, unit = "quarter", take = "quarter"))
#> half / 3