View source: R/1-construct-slur.R
Slur | R Documentation |
Slur
ObjectCreate a Slur
object to represent a slur.
Slur(i, j, to = NULL, to_j = NULL, above = NULL)
i , j |
A single positive integer. They indicate the start and end positions of the slur. |
to , to_j |
Optional. A single character or a single positive integer,
which indicates the musical line where to add the slur. Specify |
above |
Optional. A single logical, which indicates whether the slur should appear above or below the staff. By default, the position is decided by MuseScore. |
A list of class Slur
.
+.Music()
for adding a slur to a Music
object.
# Create a slur
slur <- Slur(1, 3)
slur
# Add it to a `Music`
music <- Music() + Meter(4, 4) + Line(c("C4", "D4", "E4")) + slur
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.