scale_chords: Diatonic chords

View source: R/scales.R

scale_chordsR Documentation

Diatonic chords

Description

Obtain an ordered sequence of the diatonic chords for a given scale, as triads or sevenths.

Usage

scale_chords(
  root = "c",
  scale = "major",
  type = c("triad", "seventh"),
  collapse = FALSE
)

Arguments

root

character, root note or starting position of scale.

scale

character, a valid named scale, referring to one of the existing ⁠scale_*⁠ functions.

type

character, type of chord, triad or seventh.

collapse

logical, collapse result into a single string ready for phrase construction.

Value

character

Examples

scale_chords("c", "major")
scale_chords("a", "minor")
scale_chords("a", "harmonic minor")
scale_chords("a", "melodic minor")
scale_chords("a", "jazz minor")
scale_chords("a", "hungarian minor")

scale_chords("c", "major", "seventh", collapse = TRUE)
scale_chords("a", "minor", "seventh", collapse = TRUE)

tabr documentation built on Sept. 12, 2024, 6:18 a.m.