scale-helpers: Scale helpers

scale-helpersR Documentation

Scale helpers

Description

Helper functions for working with musical scales.

Usage

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
)

Arguments

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.

Details

For valid key signatures, see keys().

Value

character

See Also

keys(), mode-helpers()

Examples

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")

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