Function chromatic

  • Create a range of chromatic notes. The altered notes will use flats.

    Parameters

    • notes: (string | number)[]

      the list of notes or midi note numbers to create a range from

    • Optional options: ToNoteNameOptions

      The same as midiToNoteName ({ sharps: boolean, pitchClass: boolean })

    Returns string[]

    an array of note names

    Function

    Example

    Range.chromatic(["C2, "E2", "D2"]) // => ["C2", "Db2", "D2", "Eb2", "E2", "Eb2", "D2"]
    // with sharps
    Range.chromatic(["C2", "C3"], { sharps: true }) // => [ "C2", "C#2", "D2", "D#2", "E2", "F2", "F#2", "G2", "G#2", "A2", "A#2", "B2", "C3" ]