@ozarkoc/chordpro-parser
Version:
A browser-friendly bundled version of chordproject-parser
16 lines (15 loc) • 555 B
TypeScript
import { IClonable } from "./IClonable";
import { Key } from "./Key";
import { MusicNote } from "./MusicNote";
export declare class Chord implements IClonable<Chord> {
key: Key;
type: string;
bass: MusicNote | null;
constructor(note: Key, type?: string, bass?: MusicNote | null);
clone(): Chord;
private static readonly chordRegex;
static parse(text: string): Chord | undefined;
toString(showType?: boolean, showBass?: boolean): string;
toSimpleString(): string;
equals(chord: Chord | null | undefined): boolean;
}