|
@@ -859,7 +859,7 @@ export const formateTimes = (osmd: OpenSheetMusicDisplay) => {
|
|
|
|
|
|
let preNoteMeasureNumber = 0; // 上一个小节的number值
|
|
|
|
|
|
- let currentRealTempo; // 当前小节的速度与拍号信息
|
|
|
+ let currentRealTempo: any = {}; // 当前小节的速度与拍号信息
|
|
|
|
|
|
const _notes = [] as any[];
|
|
|
if (state.gradualTimes) {
|
|
@@ -976,7 +976,7 @@ export const formateTimes = (osmd: OpenSheetMusicDisplay) => {
|
|
|
note.maxNoteNum = maxNoteNum;
|
|
|
note.trackIndex = minIndex;
|
|
|
currentRealTempo = iterator.currentMeasure.tempoExpressions.length ? iterator.currentMeasure.tempoExpressions.find((item: any) => item?.InstantaneousTempo?.isMetronomeMark)?.InstantaneousTempo || currentRealTempo : currentRealTempo;
|
|
|
- const { beatUnit="quarter", dotted=false, tempoInBpm } = currentRealTempo
|
|
|
+ const { beatUnit="quarter", dotted=false, tempoInBpm=state.originSpeed } = currentRealTempo
|
|
|
const speedBeatUnit = beatUnitTo(beatUnit, dotted)
|
|
|
_notes.push({
|
|
|
note,
|