Random chord generator
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
inst/chordgen
man
vignettes
.Rbuildignore
.gitignore
DESCRIPTION
LICENSE
NAMESPACE
README-chords-1.png
README.Rmd
README.md
chordgen.Rproj

README.md

chordgen

The goal of chordgen is to generate random chords using R

Installation

You can install chordgen from github with:

# install.packages("devtools")
devtools::install_github("r-music/chordgen")

Example

This is a basic example:

library(chordgen)
#> Loading required package: music21

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

app <- system.file("chordgen/app.R", package = "chordgen")
shiny::runApp(app)

Or run directly from github (after installing chordgen, of course)

shiny::runGitHub("chordgen", "r-music", subdir="inst/chordgen/")