UNPKG

chordproject-parser

Version:

A TypeScript library for parsing and formatting ChordPro songs.

16 lines (15 loc) 410 B
import { IClonable } from "./IClonable"; import { MusicNote } from "./MusicNote"; export declare class Key implements IClonable<Key> { note: MusicNote; mode: KeyMode; constructor(note: MusicNote, mode?: KeyMode); clone(): Key; static parse(text: string): Key | undefined; toString(): string; equals(key: Key): boolean; } export declare enum KeyMode { Major = 0, Minor = 1 }