View source: R/1-construct-stem.R
Stem | R Documentation |
Stem
ObjectCreate a Stem
object to modify the stem of some note.
Stem(direction, i, to = NULL)
direction |
A single character, which can be |
i |
A single positive integer, which represents the position of the stem in a musical line. |
to |
Optional. A single character or a single positive integer, which indicates the musical line where to modify the stem. |
A list of class 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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.