View source: R/1-construct-turn.R
Turn | R Documentation |
Turn
ObjectCreate a Turn
object to represent a turn ornament.
Turn(i, to = NULL, inverted = NULL)
i |
A single positive integer, which represents the position of the turn in a musical line. |
to |
Optional. A single character or a single positive integer, which indicates the musical line where to add the turn. |
inverted |
Optional. A single logical, which indicates if it is
an inverted turn. The default value is |
A list of class Turn
.
+.Music()
for adding a turn to a Music
object.
# Create a turn
turn <- Turn(1, inverted = TRUE)
turn
# Add it to a `Music`
music <- Music() + Meter(4, 4) + Line(c("C4", "D4")) + turn
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.