chordsong
Version:
ChordSong is a simple text format for the notation of lyrics with guitar chords, and an application that renders them to portable HTML pages.
34 lines (33 loc) • 1.03 kB
TypeScript
export interface FretStrings {
[fret: string]: number[];
}
export interface FingerOrBarre {
finger?: number;
fret: number;
stringFrom: number;
stringTo: number;
}
export declare const stringsFretsRegEx: RegExp;
export declare const fretStringsRegEx: RegExp;
export declare class Diagram {
chordName?: string;
chordVariant?: string;
chordRenderName?: string;
private _stringFrets;
readonly fretStrings: FretStrings;
private _fingersAndBarres;
constructor(parsedDiagram: string, chordName?: string, chordVariant?: string, chordRenderName?: string);
get stringFrets(): number[];
set stringFrets(arr: number[]);
get fingersAndBarrels(): FingerOrBarre[];
set fingersAndBarrels(arr: FingerOrBarre[]);
get minFret(): number;
get maxFret(): number;
private fromStringFrets;
private fromFingersAndBarres;
private _computeBarrel;
private _computeStringFrets;
private _computeFretStrings;
private _computeFingersAndBarrels;
toString(): string;
}