buildChord: Build Chord

View source: R/build.R

buildChordR Documentation

Build Chord

Description

Build Chord

Usage

buildChord(
  root,
  chord = "minor",
  play = FALSE,
  plot = FALSE,
  formatNotation = TRUE,
  ...
)

Arguments

root

String: Root note

chord

String: Chord to build. Default = "minor"

play

Logical: If TRUE, play chord using playChord

plot

Logical: If TRUE, plot chord notes using cplot.piano

formatNotation

Logical: If TRUE, format notes to include both flats and sharps to avoid repeating the same letter. e.g. convert c("Gb4", "G4") to c("F#4", "G4")

...

Additional arguments to be passed to playChord if play = TRUE

Author(s)

E.D. Gennatas

Examples

buildChord("C4", "minor")
buildChord("A4", "sus2", plot = TRUE)
## Not run: 
buildChord("B4", "sus2", play = TRUE)

## End(Not run)

music documentation built on July 11, 2022, 1:06 a.m.