Documentation
    Preparing search index...

    Function getChromaticScaleAtOctave

    • Returns a chromatic scale with the octave and midi information for the given octave.

      Parameters

      • octave: number

        The desired octave

      Returns (
          | {
              chroma: 0;
              color: "white";
              midi: number;
              note: "C";
              noteWithOctave: string;
              octave: number;
          }
          | {
              chroma: 1;
              color: "black";
              midi: number;
              note: "C#";
              noteWithOctave: string;
              octave: number;
          }
          | {
              chroma: 2;
              color: "white";
              midi: number;
              note: "D";
              noteWithOctave: string;
              octave: number;
          }
          | {
              chroma: 3;
              color: "black";
              midi: number;
              note: "D#";
              noteWithOctave: string;
              octave: number;
          }
          | {
              chroma: 4;
              color: "white";
              midi: number;
              note: "E";
              noteWithOctave: string;
              octave: number;
          }
          | {
              chroma: 5;
              color: "white";
              midi: number;
              note: "F";
              noteWithOctave: string;
              octave: number;
          }
          | {
              chroma: 6;
              color: "black";
              midi: number;
              note: "F#";
              noteWithOctave: string;
              octave: number;
          }
          | {
              chroma: 7;
              color: "white";
              midi: number;
              note: "G";
              noteWithOctave: string;
              octave: number;
          }
          | {
              chroma: 8;
              color: "black";
              midi: number;
              note: "G#";
              noteWithOctave: string;
              octave: number;
          }
          | {
              chroma: 9;
              color: "white";
              midi: number;
              note: "A";
              noteWithOctave: string;
              octave: number;
          }
          | {
              chroma: 10;
              color: "black";
              midi: number;
              note: "A#";
              noteWithOctave: string;
              octave: number;
          }
          | {
              chroma: 11;
              color: "white";
              midi: number;
              note: "B";
              noteWithOctave: string;
              octave: number;
          }
      )[]

      The enhanced chromatic scale