View source: R/1-construct-velocity.R
Velocity | R Documentation |
Velocity
ObjectCreate a Velocity
object to set some notes' velocities.
Velocity(velocity, to = NULL, i = NULL, j = NULL)
velocity |
A single integer between |
to |
Optional. A single character or a single positive integer, which indicates the musical line where to apply the velocity. If not provided, the velocity will be applied to all notes. |
i |
Optional. A single positive integer, which represents the position of the velocity in a musical line. |
j |
Optional. A single positive integer, which represents the position of the velocity in a chord. |
A list of class Velocity
.
+.Music()
for adding a Velocity
to a Music
object
Dynamic()
for adding dynamic markings
# Create a `Velocity`
velocity <- Velocity(10)
velocity
# Add it to a `Music`
music <- Music() + Meter(4, 4) + Line(c("C4", "D4")) + velocity
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.