opensheetmusicdisplay
Version:
An open source JavaScript engine for displaying MusicXML based on VexFlow.
22 lines (21 loc) • 1.05 kB
TypeScript
import Vex from "vexflow";
import VF = Vex.Flow;
import { VoiceEntry } from "../../VoiceData/VoiceEntry";
import { GraphicalVoiceEntry } from "../GraphicalVoiceEntry";
import { GraphicalStaffEntry } from "../GraphicalStaffEntry";
import { EngravingRules } from "../EngravingRules";
export declare class VexFlowVoiceEntry extends GraphicalVoiceEntry {
private mVexFlowStaveNote;
vfGhostNotes: VF.GhostNote[];
constructor(parentVoiceEntry: VoiceEntry, parentStaffEntry: GraphicalStaffEntry, rules?: EngravingRules);
applyBordersFromVexflow(): void;
set vfStaveNote(value: VF.StemmableNote);
get vfStaveNote(): VF.StemmableNote;
/** Apply custom noteheads from Note.CustomNoteheadVFCode. This should happen before color(). */
applyCustomNoteheads(): void;
/** (Re-)color notes and stems by setting their Vexflow styles.
* Could be made redundant by a Vexflow PR, but Vexflow needs more solid and permanent color methods/variables for that
* See VexFlowConverter.StaveNote()
*/
color(): void;
}