Learn R Programming

gm (version 1.0.2)

Tupler: Create Tupler Object

Description

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

Usage

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

Value

A list with class Tupler.

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.

See Also

tuplet()

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

Examples

Run this code
# create a triplet quarter note
t <- Tupler(3, unit = "quarter", take = "quarter")
t

tuplet("half", t)

Run the code above in your browser using DataLab