Tremolo {gm}R Documentation

Create Tremolo Object

Description

Create a Tremolo object to represent a tremolo.

Usage

Tremolo(number, i, to = NULL, between = NULL)

Arguments

number

A single integer which can be 1, 2, 3, and 4. It indicates the speed of the tremolo.

i

A single positive integer, which represents the position of the tremolo in a musical line.

to

Optional. A single character or a single positive integer, which indicates the musical line where to add the tremolo.

between

Optional. A single logical which indicates if the tremolo is between notes.

Value

A list of class Tremolo.

See Also

+.Music() for adding a tremolo to a Music object.

Examples

# Create a tremolo
tremolo <- Tremolo(3, 1, between = TRUE)
tremolo

# Add it to a `Music`
music <- Music() + Meter(4, 4) + Line(c("C4", "D4", "E4", "F4")) + tremolo
music

# Generate the music score
if (interactive()) {
  show(music)
}

[Package gm version 2.0.0 Index]