# 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)
}
Run the code above in your browser using DataLab