@dsebastien/music-notation 0.18.0 → 0.18.1

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/tab/index.js CHANGED
@@ -1875,7 +1875,9 @@ function volumeOf(volume) {
1875
1875
  }
1876
1876
 
1877
1877
  // src/playback/live-volume.ts
1878
- var listeners = new Set;
1878
+ var REGISTRY = Symbol.for("@dsebastien/music-notation/volume");
1879
+ var shared = globalThis;
1880
+ var listeners = shared[REGISTRY] ??= new Set;
1879
1881
  var level = (value) => typeof value === "number" && Number.isFinite(value) ? Math.min(1, Math.max(0, value)) : null;
1880
1882
  function volumeChanged() {
1881
1883
  for (const listener of [...listeners]) {
@@ -2599,5 +2601,5 @@ export {
2599
2601
  textTabToAlphaTex
2600
2602
  };
2601
2603
 
2602
- //# debugId=10B85D48D2B2B5E264756E2164756E21
2604
+ //# debugId=F0BE008A00DBAFB664756E2164756E21
2603
2605
  //# sourceMappingURL=index.js.map