• Stars
    star
    135
  • Rank 267,259 (Top 6 %)
  • Language
    R
  • License
    Other
  • Created about 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

R Package for Music Score and Audio Generation

gm logo

Create music easily, and show musical scores and audio files in R Markdown documents, R Jupyter Notebooks and RStudio.

Hello! World

library(gm)

m <- 
  # initialize a Music object
  Music() +
  # add a 4/4 time signature
  Meter(4, 4) +
  # add a musical line of four quarter notes
  Line(list("C5", "D5", "E5", "F5"), list(1, 1, 1, 1))
  
show(m, to = c("score", "audio"))

Installation

Install gm:

install.packages("gm")

Or the development version from GitHub:

devtools::install_github("flujoo/gm")

MuseScore, an open source and free notation software, is required. Get it from https://musescore.org/.

More

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

Donation

https://ko-fi.com/flujoo

or Alipay (支付宝):

alipay