orpheus-osmd
Version:
An open source JavaScript engine for displaying MusicXML based on VexFlow.
64 lines (63 loc) • 1.85 kB
TypeScript
import { Pitch } from "../../Common/DataObjects/Pitch";
import { KeyInstruction } from "./Instructions/KeyInstruction";
import { AccidentalEnum } from "../../Common/DataObjects/Pitch";
export declare class ChordSymbolContainer {
private rootPitch;
private chordKind;
private bassPitch;
private degree;
private keyInstruction;
constructor(rootPitch: Pitch, chordKind: ChordSymbolEnum, bassPitch: Pitch, chordDegree: Degree, keyInstruction: KeyInstruction);
get RootPitch(): Pitch;
get ChordKind(): ChordSymbolEnum;
get BassPitch(): Pitch;
get ChordDegree(): Degree;
get KeyInstruction(): KeyInstruction;
static calculateChordText(chordSymbol: ChordSymbolContainer, transposeHalftones: number): string;
private static getTextForAccidental;
private static getTextFromChordKindEnum;
}
export declare class Degree {
constructor(value: number, alteration: AccidentalEnum, text: ChordDegreeText);
value: number;
alteration: AccidentalEnum;
text: ChordDegreeText;
}
export declare enum ChordDegreeText {
add = 0,
alter = 1,
subtract = 2
}
export declare enum ChordSymbolEnum {
major = 0,
minor = 1,
augmented = 2,
diminished = 3,
dominant = 4,
majorseventh = 5,
minorseventh = 6,
diminishedseventh = 7,
augmentedseventh = 8,
halfdiminished = 9,
majorminor = 10,
majorsixth = 11,
minorsixth = 12,
dominantninth = 13,
majorninth = 14,
minorninth = 15,
dominant11th = 16,
major11th = 17,
minor11th = 18,
dominant13th = 19,
major13th = 20,
minor13th = 21,
suspendedsecond = 22,
suspendedfourth = 23,
Neapolitan = 24,
Italian = 25,
French = 26,
German = 27,
pedal = 28,
power = 29,
Tristan = 30
}