Mordent {gm} | R Documentation |
Create Mordent
Object
Description
Create a Mordent
object to represent a mordent ornament.
Usage
Mordent(i, to = NULL, inverted = NULL, long = NULL, ornament = NULL)
Arguments
i |
A single positive integer, which represents the position of the mordent in a musical line. |
to |
Optional. A single character or a single positive integer, which indicates the musical line where to add the mordent. |
inverted |
Optional. A single logical, which indicates whether the
mordent is inverted or not. The default value is |
long |
Optional. A single logical, which indicates whether the
mordent is long or not. The default value is |
ornament |
Optional. A single character, which can be |
Value
A list of class Mordent
.
See Also
+.Music()
for adding a Mordent
to a Music
object.
Examples
# Create a mordent
mordent <- Mordent(1)
mordent
# Add it to a `Music`
music <- Music() + Meter(4, 4) + Line(c("C4", "D4")) + mordent
music
# Generate the music score
if (interactive()) {
show(music)
}