-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathREADME.Rmd
67 lines (44 loc) · 1.17 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{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:
#
# <audio controls>
# <source src="reference/figures/readme_audio.mp3" type="audio/mpeg">
# </audio>
#
# See `vignette("gm")` for a complete guide to gm.
```
# gm <img src="man/figures/logo.png" align="right" alt="logo" width="120"/>
<!-- badges: start -->
<!-- badges: end -->
Create music with R.
## Example
```r
library(gm)
music <-
Music() +
Meter(4, 4) +
Line(c("C5", "D5", "E5", "F5"))
show(music)
```


## 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.