musicxml-io 0.7.2 → 0.7.3

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 CHANGED
@@ -6597,7 +6597,12 @@ function createConductorTrack(score, defaultTempo, grid) {
6597
6597
  events.push(...writeVariableLength(ev.tick - lastTick), ...ev.bytes);
6598
6598
  lastTick = ev.tick;
6599
6599
  }
6600
- events.push(...writeVariableLength(0), 255, 47, 0);
6600
+ events.push(
6601
+ ...writeVariableLength(Math.max(0, grid.totalTicks - lastTick)),
6602
+ 255,
6603
+ 47,
6604
+ 0
6605
+ );
6601
6606
  return new Uint8Array(events);
6602
6607
  }
6603
6608
  function createPartTrack(part, _score, channel, program, ticksPerQuarterNote, defaultVelocity, measureOrder) {
package/dist/index.mjs CHANGED
@@ -6597,7 +6597,12 @@ function createConductorTrack(score, defaultTempo, grid) {
6597
6597
  events.push(...writeVariableLength(ev.tick - lastTick), ...ev.bytes);
6598
6598
  lastTick = ev.tick;
6599
6599
  }
6600
- events.push(...writeVariableLength(0), 255, 47, 0);
6600
+ events.push(
6601
+ ...writeVariableLength(Math.max(0, grid.totalTicks - lastTick)),
6602
+ 255,
6603
+ 47,
6604
+ 0
6605
+ );
6601
6606
  return new Uint8Array(events);
6602
6607
  }
6603
6608
  function createPartTrack(part, _score, channel, program, ticksPerQuarterNote, defaultVelocity, measureOrder) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musicxml-io",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Parse and serialize MusicXML (.xml/.mxl) and ABC notation with high round-trip fidelity",
5
5
  "author": "tan-z-tan",
6
6
  "license": "MIT",