View source: R/1-construct-tremolo.R
Tremolo | R Documentation |
Tremolo
ObjectCreate a Tremolo
object to represent a tremolo.
Tremolo(number, i, to = NULL, between = NULL)
number |
A single integer which can be |
i |
A single positive integer, which represents the position of the tremolo in a musical line. |
to |
Optional. A single character or a single positive integer, which indicates the musical line where to add the tremolo. |
between |
Optional. A single logical which indicates if the tremolo is between notes. |
A list of class Tremolo
.
+.Music()
for adding a tremolo to a Music
object.
# Create a tremolo
tremolo <- Tremolo(3, 1, between = TRUE)
tremolo
# Add it to a `Music`
music <- Music() + Meter(4, 4) + Line(c("C4", "D4", "E4", "F4")) + tremolo
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.