Browse Source

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

Matthias Uiberacker 7 years ago
parent
commit
f42ecf69af
1 changed files with 11 additions and 0 deletions
  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;
+}