View source: R/1-construct-pedal.R
Pedal | R Documentation |
Pedal
ObjectCreate a Pedal
object to represent piano sustain pedal marks.
Pedal(i, j, to = NULL)
i , j |
A single positive integer. They indicate the start
and end position of the |
to |
Optional. A single character or a single positive integer,
which indicates the musical line where to add the |
A list of class Pedal
.
+.Music()
for adding a Pedal
to a Music
object.
# Create a `Pedal`
pedal <- Pedal(1, 3)
pedal
# Add it to a `Music`
music <- Music() + Meter(4, 4) + Line(c("C4", "D4", "E4")) + pedal
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.