fix build error

This commit is contained in:
2025-12-25 20:59:47 +01:00
parent e57b790ab9
commit 894321f0dc
2 changed files with 6 additions and 4 deletions

View File

@@ -127,8 +127,7 @@ export const SheetMusic: React.FC<SheetMusicProps> = ({
const data = getNoteInKey(visualMidi, keySignature);
const ghost = new GhostNote({
keys: data.keys,
duration: "w",
clef: noteClef as 'treble' | 'bass'
duration: "w"
});
// Add a Question Mark Annotation
@@ -160,7 +159,7 @@ export const SheetMusic: React.FC<SheetMusicProps> = ({
if (clef === 'grand') noteClef = getGrandStaffClef(visualMidi);
const data = getNoteInKey(visualMidi, keySignature);
const ghost = new GhostNote({ keys: data.keys, duration: "h", clef: noteClef as 'treble' | 'bass' });
const ghost = new GhostNote({ keys: data.keys, duration: "h" });
ghost.addModifier(new Annotation("?").setVerticalJustification(Annotation.VerticalJustify.CENTER));
targetHalfObj = { note: ghost, clef: noteClef };
} else {