View source: R/1-construct-trill.R
Trill | R Documentation |
Trill
ObjectCreate a Trill
object to represent a trill ornament.
Trill(i, j = NULL, to = NULL)
i |
A single positive integer, which represents the position of the trill in a musical line. |
j |
Optional. A single positive integer, which indicates the end position of the trill line in a musical line. If not provided, the trill will appear as a tr symbol above only the trilled note. Otherwise, it will appear as a tr~~~ symbol above the notes between the start and end positions. |
to |
Optional. A single character or a single positive integer, which indicates the musical line where to add the trill. |
A list of class Trill
.
+.Music()
for adding a trill to a Music
object.
# Create a trill
trill <- Trill(1, 3)
trill
# Add it to a `Music`
music <- Music() + Meter(4, 4) + Line(c("C4", "D4", "E4", "F4")) + trill
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.