Stem
ObjectCreate a Stem
object to modify the stem of some note.
Stem(direction, i, to = NULL)
A list of class Stem
.
A single character, which can be "down"
, "up"
,
"double"
, and "none"
. See
the MusicXML specification.
A single positive integer, which represents the position of the stem in a musical line.
Optional. A single character or a single positive integer, which indicates the musical line where to modify the stem.
+.Music()
for adding a Stem
to a Music
object.
# Create a `Stem`
stem <- Stem("none", 1)
stem
# Add a `Stem` to a `Music`
music <- Music() + Meter(4, 4) + Line(c("C4", "D4")) + stem
music
# Generate the music score
if (interactive()) {
show(music)
}
Run the code above in your browser using DataLab