|
@@ -449,19 +449,24 @@ export const getAllNodes = (osmd: any) => {
|
|
|
|
|
|
|
|
|
if (i === 0) {
|
|
|
- const diff = getMeasureDurationDiff(iterator.currentMeasure)
|
|
|
-
|
|
|
-
|
|
|
- if (diff > 0) {
|
|
|
- difftime = diff * vDenominator * (60 / beatSpeed)
|
|
|
-
|
|
|
- if (state.activeDetail?.audioType === 'MIDI') {
|
|
|
- difftime = 0
|
|
|
+ let _firstMeasureRealValue = 0
|
|
|
+ const staffEntries = note.sourceMeasure.verticalMeasureList?.[0]?.staffEntries || []
|
|
|
+
|
|
|
+ staffEntries.forEach((_a: any) => {
|
|
|
+ if(_a?.sourceStaffEntry?.voiceEntries?.[0]?.notes?.[0]?.length?.realValue){
|
|
|
+ _firstMeasureRealValue += _a.sourceStaffEntry.voiceEntries[0].notes[0].length.realValue
|
|
|
}
|
|
|
-
|
|
|
- fixtime += difftime
|
|
|
-
|
|
|
+ })
|
|
|
+ if (_firstMeasureRealValue < vRealValue){
|
|
|
+
|
|
|
+
|
|
|
+ difftime = measureLength - noteLength
|
|
|
+ }
|
|
|
+
|
|
|
+ if (state.activeDetail?.audioType === 'MIDI') {
|
|
|
+ difftime = 0
|
|
|
}
|
|
|
+ fixtime += difftime
|
|
|
}
|
|
|
const nodeDetail = {
|
|
|
fixtime,
|