Type alias MidiKeyInfo

MidiKeyInfo: {
    flatOf?: undefined;
    sharpOf?: undefined;
    whiteNumber: number;
} | {
    flatOf: number;
    sharpOf: number;
    whiteNumber?: undefined;
}

Information about a MIDI key.

Type declaration

  • Optional flatOf?: undefined
  • Optional sharpOf?: undefined
  • whiteNumber: number

    Contiguous index of the key with other white keys.

Type declaration

  • flatOf: number

    This black key is a flat of that white key.

  • sharpOf: number

    This black key is a sharp of that white key.

  • Optional whiteNumber?: undefined