Function modes

  • Given a a list of notes or a pcset chroma, produce the rotations of the chroma discarding the ones that starts with "0"

    This is used, for example, to get all the modes of a scale.

    Parameters

    • set: Set

      the list of notes or pitchChr of the set

    • normalize: boolean = true

      (Optional, true by default) remove all the rotations that starts with "0"

    Returns PcsetChroma[]

    an array with all the modes of the chroma

    Example

    Pcset.modes(["C", "D", "E"]).map(Pcset.intervals)