Create Music with Ease

Provides a simple and intuitive high-level language for music representation. Generates and embeds music scores and audio files in 'RStudio', 'R Markdown' documents, and R 'Jupyter Notebooks'. Internally, uses 'MusicXML' < https://github.com/w3c/musicxml> to represent music, and 'MuseScore' < https://musescore.org/> to convert 'MusicXML'.


gm logo

Create music with R.

Example

library(gm)

music <- 
  Music() +
  Meter(4, 4) +
  Line(c("C5", "D5", "E5", "F5"))
  
show(music)

Installation

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.

More

See vignette("gm") for a complete guide to gm.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("gm")

2.0.0 by Renfei Mao, 2 years ago


https://github.com/flujoo/gm, https://flujoo.github.io/gm/


Browse source code at https://github.com/cran/gm


Authors: Renfei Mao


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports base64enc, erify, htmltools, utils

Suggests knitr, rmarkdown, rstudioapi, shiny, testthat, tibble

System requirements: MuseScore - https://musescore.org/


Suggested by voice.


See at CRAN