@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/README.md CHANGED
@@ -186,7 +186,7 @@ Add this to your site's `publish.js`. It loads the bundle only on pages that hav
186
186
 
187
187
  ```js
188
188
  ;(() => {
189
- const VERSION = '0.17.0'
189
+ const VERSION = '0.18.1'
190
190
  const CDN = `https://cdn.jsdelivr.net/npm/@dsebastien/music-notation@${VERSION}/dist`
191
191
  const selector = (languages) => languages.map((l) => `pre > code.language-${l}`).join(', ')
192
192
  const BLOCKS = selector([
package/dist/index.js CHANGED
@@ -4378,7 +4378,9 @@ function followNotes(win, drawing, targets, events, wait = START_WAIT) {
4378
4378
  }
4379
4379
 
4380
4380
  // src/playback/live-volume.ts
4381
- var listeners = new Set;
4381
+ var REGISTRY = Symbol.for("@dsebastien/music-notation/volume");
4382
+ var shared = globalThis;
4383
+ var listeners = shared[REGISTRY] ??= new Set;
4382
4384
  var level = (value) => typeof value === "number" && Number.isFinite(value) ? Math.min(1, Math.max(0, value)) : null;
4383
4385
  function volumeChanged() {
4384
4386
  for (const listener of [...listeners]) {
@@ -14623,5 +14625,5 @@ export {
14623
14625
  withTonicizations
14624
14626
  };
14625
14627
 
14626
- //# debugId=618A7E58A09A035164756E2164756E21
14628
+ //# debugId=5534734ED808B8B764756E2164756E21
14627
14629
  //# sourceMappingURL=index.js.map