scale-helpers | R Documentation |
Helper functions for working with musical scales.
scale_diatonic(key = "c", collapse = FALSE, ignore_octave = FALSE)
scale_major(key = "c", collapse = FALSE, ignore_octave = FALSE)
scale_minor(key = "am", collapse = FALSE, ignore_octave = FALSE)
scale_harmonic_minor(key = "am", collapse = FALSE, ignore_octave = FALSE)
scale_hungarian_minor(key = "am", collapse = FALSE, ignore_octave = FALSE)
scale_melodic_minor(
key = "am",
descending = FALSE,
collapse = FALSE,
ignore_octave = FALSE
)
scale_jazz_minor(key = "am", collapse = FALSE, ignore_octave = FALSE)
scale_chromatic(
root = "c",
collapse = FALSE,
sharp = TRUE,
ignore_octave = FALSE
)
key |
character, key signature. |
collapse |
logical, collapse result into a single string ready for phrase construction. |
ignore_octave |
logical, strip octave numbering from scales not rooted on C. |
descending |
logical, return the descending scale, available as a built-in argument for the melodic minor scale, which is different in each direction. |
root |
character, root note. |
sharp |
logical, accidentals in arbitrary scale output should be sharp rather than flat. |
For valid key signatures, see keys()
.
character
keys()
, mode-helpers()
scale_diatonic(key = "dm")
scale_minor(key = "dm")
scale_major(key = "d")
scale_chromatic(root = "a")
scale_harmonic_minor("am")
scale_hungarian_minor("am")
identical(scale_melodic_minor("am"), scale_jazz_minor("am"))
rev(scale_melodic_minor("am", descending = TRUE))
scale_jazz_minor("am")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.