-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
60 lines (42 loc) · 1.03 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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# chordgen
The goal of chordgen is to generate random chords using R
## Installation
You can install chordgen from github with:
```{r gh-installation, eval = FALSE}
# install.packages("devtools")
devtools::install_github("r-music/chordgen")
```
## Example
This is a basic example:
```{r chords, fig.width=8, fig.height=4}
library(chordgen)
chordgen(20,
n_notes = 3:4,
octave = 0,
transpose = 0,
triad_types = 1:5,
invert = FALSE,
add_lyric = TRUE) %>%
plot()
```
## Shiny app
Check out the shiny app
```{r, eval=FALSE}
app <- system.file("chordgen/app.R", package = "chordgen")
shiny::runApp(app)
```
Or run directly from github (after installing `chordgen`, of course)
```{r, eval=FALSE}
shiny::runGitHub("chordgen", "r-music", subdir="inst/chordgen/")
```