Browse Source

fix: #12279问题一修复

TIANYONG 2 weeks ago
parent
commit
6083d3b2f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/helpers/formateMusic.ts

+ 1 - 1
src/helpers/formateMusic.ts

@@ -1460,7 +1460,7 @@ export const formateTimes = (osmd: OpenSheetMusicDisplay) => {
 				trackIndex: note.trackIndex, // 当前的音符属于第几条分轨
 				isStaccato: note.voiceEntry.isStaccato(),
 				isRestFlag: note.isRestFlag,
-				noteId: note.NoteToGraphicalNoteObjectId,
+				noteId: note.NoteToGraphicalNoteObjectId || `restNote${note.sourceMeasure.MeasureNumberXML}`,
 				measureListIndex: note.sourceMeasure.measureListIndex,
 				MeasureNumberXML: note.sourceMeasure.MeasureNumberXML, // 当前的小节数,(从1开始)
 				_noteLength: _noteLength,