浏览代码

refactor: added a GraphicalVoiceEntry holding the GraphicalNotes of one voice. The inherited VexFlowVoiceEntry holds then also the corresponding VexFlow.StaveNote.

Matthias Uiberacker 7 年之前
父节点
当前提交
f42ecf69af
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      src/MusicalScore/Graphical/VexFlow/VexFlowVoiceEntry.ts

+ 11 - 0
src/MusicalScore/Graphical/VexFlow/VexFlowVoiceEntry.ts

@@ -0,0 +1,11 @@
+import { VoiceEntry } from "../../VoiceData/VoiceEntry";
+import { GraphicalVoiceEntry } from "../GraphicalVoiceEntry";
+import { GraphicalStaffEntry } from "../GraphicalStaffEntry";
+
+export class VexFlowVoiceEntry extends GraphicalVoiceEntry {
+    constructor(parentVoiceEntry: VoiceEntry, parentStaffEntry: GraphicalStaffEntry) {
+        super(parentVoiceEntry, parentStaffEntry);
+    }
+
+    public vfStaveNote: Vex.Flow.StaveNote;
+}