浏览代码

feat: 音符noteId取值修改

TIANYONG 1 周之前
父节点
当前提交
acea9a78c0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/helpers/formateMusic.ts

+ 1 - 1
src/helpers/formateMusic.ts

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