buildScale {music} | R 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 |
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 |
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)
[Package music version 0.1.2 Index]