Create a Tupler object. Tupler objects are used in tuplet() to create tuplets.

Tupler(n, unit = NULL, take = unit)

Arguments

n

A positive integer which indicates into how many parts to divide a duration.

unit, take

A duration type followed by zero to four dots, or its corresponding duration value.

Value

A list with class Tupler.

See also

tuplet()

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

Examples

# create a triplet quarter note
t <- Tupler(3, unit = "quarter", take = "quarter")
t
#> / 3 * (quarter / quarter) 

tuplet("half", t)
#> half / 3