Breath {gm}R Documentation

Create Breath Object

Description

Create a Breath object to represent a breath mark.

Usage

Breath(i, to = NULL, symbol = NULL)

Arguments

i

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

to

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

symbol

Optional. A single character which can be "comma", "tick", "upbow", and "salzedo". It represents the symbol used for the breath mark. The default symbol is "comma". See the MusicXML specification.

Value

A list of class Breath.

See Also

+.Music() for adding a breath mark to a Music object.

Examples

# Create a breath mark
breath <- Breath(1)
breath

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

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

[Package gm version 2.0.0 Index]