musicxml-io 0.3.9 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3802,6 +3802,9 @@ function buildMeasures(tokens, unitNote, keySignature, timeSignature, measureDur
|
|
|
3802
3802
|
} else {
|
|
3803
3803
|
entry.duration = Math.round(entry.duration * (2 * divisor - 1) / divisor);
|
|
3804
3804
|
}
|
|
3805
|
+
const { noteType: brokenType, dots: brokenDots } = durationToNoteType(entry.duration);
|
|
3806
|
+
entry.noteType = brokenType;
|
|
3807
|
+
entry.dots = brokenDots > 0 ? brokenDots : void 0;
|
|
3805
3808
|
pendingBrokenRhythm = null;
|
|
3806
3809
|
}
|
|
3807
3810
|
if (pendingTupletStart && !inGrace) {
|
|
@@ -4040,6 +4043,9 @@ function buildMeasures(tokens, unitNote, keySignature, timeSignature, measureDur
|
|
|
4040
4043
|
} else {
|
|
4041
4044
|
e.duration = Math.round(e.duration / brokenDivisor);
|
|
4042
4045
|
}
|
|
4046
|
+
const { noteType: newType, dots: newDots } = durationToNoteType(e.duration);
|
|
4047
|
+
e.noteType = newType;
|
|
4048
|
+
e.dots = newDots > 0 ? newDots : void 0;
|
|
4043
4049
|
break;
|
|
4044
4050
|
}
|
|
4045
4051
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -3802,6 +3802,9 @@ function buildMeasures(tokens, unitNote, keySignature, timeSignature, measureDur
|
|
|
3802
3802
|
} else {
|
|
3803
3803
|
entry.duration = Math.round(entry.duration * (2 * divisor - 1) / divisor);
|
|
3804
3804
|
}
|
|
3805
|
+
const { noteType: brokenType, dots: brokenDots } = durationToNoteType(entry.duration);
|
|
3806
|
+
entry.noteType = brokenType;
|
|
3807
|
+
entry.dots = brokenDots > 0 ? brokenDots : void 0;
|
|
3805
3808
|
pendingBrokenRhythm = null;
|
|
3806
3809
|
}
|
|
3807
3810
|
if (pendingTupletStart && !inGrace) {
|
|
@@ -4040,6 +4043,9 @@ function buildMeasures(tokens, unitNote, keySignature, timeSignature, measureDur
|
|
|
4040
4043
|
} else {
|
|
4041
4044
|
e.duration = Math.round(e.duration / brokenDivisor);
|
|
4042
4045
|
}
|
|
4046
|
+
const { noteType: newType, dots: newDots } = durationToNoteType(e.duration);
|
|
4047
|
+
e.noteType = newType;
|
|
4048
|
+
e.dots = newDots > 0 ? newDots : void 0;
|
|
4043
4049
|
break;
|
|
4044
4050
|
}
|
|
4045
4051
|
}
|