@dsebastien/music-notation 0.19.0 → 0.19.2

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.
@@ -9,7 +9,7 @@ import type * as AT from '@coderline/alphatab';
9
9
  import type { NotePlayer } from '../playback/player.js';
10
10
  export type AlphaTabModule = typeof AT;
11
11
  /** The alphaTab release these blocks are made for (Publish loads it from jsDelivr). */
12
- export declare const ALPHATAB_VERSION = "1.8.4";
12
+ export declare const ALPHATAB_VERSION = "1.9.0";
13
13
  /** jsDelivr URLs of alphaTab's script, music font and soundfont, for web pages. */
14
14
  export declare const alphaTabCdn: (version?: string) => {
15
15
  script: string;
package/dist/tab/index.js CHANGED
@@ -2000,7 +2000,7 @@ function chordSheetToChordPro(text) {
2000
2000
  }
2001
2001
 
2002
2002
  // src/tab/index.ts
2003
- var ALPHATAB_VERSION = "1.8.4";
2003
+ var ALPHATAB_VERSION = "1.9.0";
2004
2004
  var alphaTabCdn = (version = ALPHATAB_VERSION) => {
2005
2005
  const base = `https://cdn.jsdelivr.net/npm/@coderline/alphatab@${version}/dist`;
2006
2006
  return {
@@ -2366,7 +2366,8 @@ function renderTab(language, source, host, options) {
2366
2366
  },
2367
2367
  player: {
2368
2368
  playerMode: at.PlayerMode.Disabled,
2369
- enableUserInteraction: true,
2369
+ enableSeekToClick: true,
2370
+ enablePlaybackRangeSelection: true,
2370
2371
  scrollMode: at.ScrollMode.Off
2371
2372
  }
2372
2373
  };
@@ -2426,7 +2427,7 @@ function renderTab(language, source, host, options) {
2426
2427
  try {
2427
2428
  bytes = options.resolveFile ? await options.resolveFile(parsed.file) : null;
2428
2429
  } catch (e) {
2429
- throw new Error(`Couldn't read "${parsed.file}": ${e instanceof Error ? e.message : String(e)}`);
2430
+ throw new Error(`Couldn't read "${parsed.file}": ${e instanceof Error ? e.message : String(e)}`, { cause: e });
2430
2431
  }
2431
2432
  if (gone)
2432
2433
  return;
@@ -2533,6 +2534,8 @@ function createSoundfontPlayer(alphaTab, assets, doc, fallback) {
2533
2534
  },
2534
2535
  player: {
2535
2536
  playerMode: alphaTab.PlayerMode.EnabledSynthesizer,
2537
+ enableCursor: false,
2538
+ scrollMode: alphaTab.ScrollMode.Off,
2536
2539
  ...typeof assets.soundFont === "string" ? { soundFont: assets.soundFont } : {}
2537
2540
  }
2538
2541
  });
@@ -2637,5 +2640,5 @@ export {
2637
2640
  textTabToAlphaTex
2638
2641
  };
2639
2642
 
2640
- //# debugId=82D97D2BA239548B64756E2164756E21
2643
+ //# debugId=89F5004D5F1EAB8664756E2164756E21
2641
2644
  //# sourceMappingURL=index.js.map