orpheus-osmd
Version:
An open source JavaScript engine for displaying MusicXML based on VexFlow.
21 lines (20 loc) • 839 B
TypeScript
import { KeyInstruction } from "../VoiceData/Instructions/KeyInstruction";
import { GraphicalNote } from "./GraphicalNote";
import { Pitch } from "../../Common/DataObjects/Pitch";
/**
* Compute the accidentals for notes according to the current key instruction
*/
export declare class AccidentalCalculator {
private keySignatureNoteAlterationsDict;
private currentAlterationsComparedToKeyInstructionList;
private currentInMeasureNoteAlterationsDict;
private activeKeyInstruction;
get ActiveKeyInstruction(): KeyInstruction;
set ActiveKeyInstruction(value: KeyInstruction);
/**
* This method is called after each Measure
*/
doCalculationsAtEndOfMeasure(): void;
checkAccidental(graphicalNote: GraphicalNote, pitch: Pitch): void;
private reactOnKeyInstructionChange;
}