View source: R/1-construct-hairpin.R
Hairpin | R Documentation |
Hairpin
ObjectCreate a Hairpin
object to represent a crescendo or diminuendo symbol.
Hairpin(symbol, i, j, to = NULL, above = NULL)
symbol |
A single character, which can be |
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 |
above |
Optional. A single logical, which indicates whether the
|
A list of class Hairpin
.
+.Music()
for adding a Hairpin
to
a Music
object.
# Create a crescendo
crescendo <- Hairpin("<", 1, 3)
crescendo
# Add it to a `Music`
music <- Music() + Meter(4, 4) + Line(c("C4", "D4", "E4")) + crescendo
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.