@k-l-lambda/lilylet 0.1.84 → 0.1.85
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.
|
@@ -1483,8 +1483,9 @@ const convertMeasure = (measureEl, voiceTracker, spannerTracker, ottavaTracker,
|
|
|
1483
1483
|
}
|
|
1484
1484
|
if (voiceNum === undefined)
|
|
1485
1485
|
voiceNum = voices.keys().next().value;
|
|
1486
|
-
if (voiceNum
|
|
1487
|
-
|
|
1486
|
+
if (voiceNum === undefined)
|
|
1487
|
+
voiceNum = 1;
|
|
1488
|
+
voiceTracker.addEvent(voiceNum, pc.ctx, 0, pc.staff ?? 1);
|
|
1488
1489
|
}
|
|
1489
1490
|
pendingContextChanges.length = 0;
|
|
1490
1491
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k-l-lambda/lilylet",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.85",
|
|
4
4
|
"description": "Lilylet is a lilyopnd-like sheet music language designed for Markdown rendering and symbolic music representation in AIGC applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -1734,7 +1734,8 @@ const convertMeasure = (
|
|
|
1734
1734
|
if (vs.staff === pc.staff) { voiceNum = vn; break; }
|
|
1735
1735
|
}
|
|
1736
1736
|
if (voiceNum === undefined) voiceNum = voices.keys().next().value;
|
|
1737
|
-
if (voiceNum
|
|
1737
|
+
if (voiceNum === undefined) voiceNum = 1;
|
|
1738
|
+
voiceTracker.addEvent(voiceNum, pc.ctx, 0, pc.staff ?? 1);
|
|
1738
1739
|
}
|
|
1739
1740
|
pendingContextChanges.length = 0;
|
|
1740
1741
|
}
|