# Create a `Notehead`
notehead <- Notehead(1, shape = "diamond", color = "#800080")
notehead
# Add it to a `Music`
music <- Music() + Meter(4, 4) + Line(c("C4", "D4")) + notehead
music
# Generate the music score
if (interactive()) {
show(music)
}
Run the code above in your browser using DataLab