Learn R Programming

music (version 0.1.2)

buildScale: 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

E.D. Gennatas