
Create music with R.
library(gm)
music <- 
  Music() +
  Meter(4, 4) +
  Line(c("C5", "D5", "E5", "F5"))
  
show(music)

Install gm:
install.packages("gm")
# Or install the development version from GitHub
pak::pak("flujoo/gm")Install MuseScore. MuseScore is open source and free notation software.
See vignette("gm")
for a complete guide to gm.