Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/flujoo/gm

R Package for Music Creation
https://github.com/flujoo/gm

algorithmic-composition music-programming musicxml r

Last synced: 6 days ago
JSON representation

R Package for Music Creation

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
out.width = "100%"
)

# Cannot add audio files in GitHub README, so let pkgdown use `index.md`
# rather than `README.md` to generate the home page. The two differences:
#
#
#
#
#
# See `vignette("gm")` for a complete guide to gm.
```

# gm logo

Create music with R.

## Example

```r
library(gm)

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

show(music)
```

![](man/figures/readme.png)

![](man/figures/readme_audio.png)

## Installation

Install gm:

``` r
install.packages("gm")

# Or install the development version from GitHub
pak::pak("flujoo/gm")
```

Install [MuseScore](https://musescore.org/). MuseScore is open source and free notation software.

## More

See [`vignette("gm")`](https://flujoo.github.io/gm/articles/gm.html) for a complete guide to gm.