opensheetmusicdisplay
Version:
An open source JavaScript engine for displaying MusicXML based on VexFlow.
19 lines (18 loc) • 723 B
TypeScript
import { PlacementEnum } from "../Expressions/AbstractExpression";
import { Note } from "../Note";
export declare enum TechnicalInstructionType {
Fingering = 0,
String = 1
}
export declare class TechnicalInstruction {
type: TechnicalInstructionType;
value: string;
placement: PlacementEnum;
sourceNote: Note;
/** To be able to set fontFamily for fingerings, e.g. (after load, before render):
* osmd.cursor.GNotesUnderCursor()[0].parentVoiceEntry.parentVoiceEntry.TechnicalInstructions[0].fontFamily = "Comic Sans MS"
* Note that staffEntry.FingeringInstructions is only created during render(),
* so it's no use setting it there before render.
*/
fontFamily: string;
}