buildScale: Build Scale

View source: R/build.R

buildScaleR Documentation

Build Scale

Description

Build Scale / Mode

Usage

buildScale(
  root,
  scale = "minor",
  descending = FALSE,
  play = FALSE,
  pairs = FALSE,
  plot = FALSE,
  formatNotation = TRUE,
  ...
)

Arguments

root

String: Root note. e.g. "C4"

scale

String: Scale to build. Default = "minor"

descending

Logical: If TRUE, return notes in descending order, otherwise in ascending Default = FALSE

play

Logical: If TRUE, play scale using playNote

pairs

Logical: If TRUE and play = TRUE, play the root note along with each other note, in sequence

plot

Logical: If TRUE, plot scale 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 playNote if play = TRUE

Author(s)

E.D. Gennatas

Examples

buildScale("C4", "minor")
buildScale("B4", "minor", descending = TRUE, plot = TRUE)
## Not run: 
buildScale("B4", "minor", descending = TRUE, play = TRUE, plot TRUE)

## End(Not run)

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