|
@@ -925,7 +925,10 @@ export class VexFlowMeasure extends GraphicalMeasure {
|
|
|
// add clef as NoteSubGroup so that we get modifier layouting
|
|
|
const clefModifier: NoteSubGroup = new NoteSubGroup( [vfse.vfClefBefore] );
|
|
|
// The cast is necesary because...vexflow -> see types
|
|
|
- (vexFlowVoiceEntry.vfStaveNote as Vex.Flow.StaveNote).addModifier(0, clefModifier);
|
|
|
+ if (vexFlowVoiceEntry.vfStaveNote.getCategory && vexFlowVoiceEntry.vfStaveNote.getCategory() === "stavenotes") {
|
|
|
+ // GhostNotes and other StemmableNotes don't have this function
|
|
|
+ (vexFlowVoiceEntry.vfStaveNote as Vex.Flow.StaveNote).addModifier(0, clefModifier);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|