@coderline/alphatab 1.3.0-alpha.170 → 1.3.0-alpha.172

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/alphaTab.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * alphaTab v1.3.0-alpha.170 (develop, build 170)
2
+ * alphaTab v1.3.0-alpha.172 (develop, build 172)
3
3
  *
4
4
  * Copyright © 2022, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -14840,7 +14840,7 @@ class Hydra {
14840
14840
  const chunkHead = new RiffChunk();
14841
14841
  const chunkFastList = new RiffChunk();
14842
14842
  if (!RiffChunk.load(null, chunkHead, readable) || chunkHead.id !== 'sfbk') {
14843
- throw new FormatError("Soundfont is not a valid Soundfont2 file");
14843
+ throw new FormatError('Soundfont is not a valid Soundfont2 file');
14844
14844
  }
14845
14845
  while (RiffChunk.load(chunkHead, chunkFastList, readable)) {
14846
14846
  let chunk = new RiffChunk();
@@ -14919,7 +14919,7 @@ class Hydra {
14919
14919
  let samplesLeft = (chunk.size / 2) | 0;
14920
14920
  const samples = new Float32Array(samplesLeft);
14921
14921
  let samplesPos = 0;
14922
- const sampleBuffer = new Uint8Array(2048);
14922
+ const sampleBuffer = new Uint8Array(16 * 1024);
14923
14923
  while (samplesLeft > 0) {
14924
14924
  let samplesToRead = Math.min(samplesLeft, (sampleBuffer.length / 2) | 0);
14925
14925
  reader.read(sampleBuffer, 0, samplesToRead * 2);
@@ -21086,7 +21086,7 @@ class BeatBounds {
21086
21086
  for (let note of notes) {
21087
21087
  let bottom = note.noteHeadBounds.y + note.noteHeadBounds.h;
21088
21088
  let right = note.noteHeadBounds.x + note.noteHeadBounds.w;
21089
- if (note.noteHeadBounds.x >= x && note.noteHeadBounds.y >= y && x <= right && y <= bottom) {
21089
+ if (note.noteHeadBounds.x <= x && note.noteHeadBounds.y <= y && x <= right && y <= bottom) {
21090
21090
  return note.note;
21091
21091
  }
21092
21092
  }
@@ -22413,15 +22413,18 @@ class MidiTickLookup {
22413
22413
  /**
22414
22414
  * Gets a dictionary of all master bars played. The index is the index equals to {@link MasterBar.index}.
22415
22415
  * This lookup only contains the first time a MasterBar is played. For a whole sequence of the song refer to {@link MasterBars}.
22416
+ * @internal
22416
22417
  */
22417
22418
  this.masterBarLookup = new Map();
22418
22419
  /**
22419
22420
  * Gets a list of all {@link MasterBarTickLookup} sorted by time.
22421
+ * @internal
22420
22422
  */
22421
22423
  this.masterBars = [];
22422
22424
  }
22423
22425
  /**
22424
22426
  * Performs the neccessary finalization steps after all information was written.
22427
+ * @internal
22425
22428
  */
22426
22429
  finish() {
22427
22430
  let previous = null;
@@ -24328,6 +24331,12 @@ class AlphaTabApiBase {
24328
24331
  this.uiFacade.canRenderChanged.on(() => this.render());
24329
24332
  }
24330
24333
  }
24334
+ /**
24335
+ * Gets the tick cache related to the current score.
24336
+ */
24337
+ get tickCache() {
24338
+ return this._tickCache;
24339
+ }
24331
24340
  get isReadyForPlayback() {
24332
24341
  if (!this.player) {
24333
24342
  return false;
@@ -32689,8 +32698,6 @@ class HorizontalScreenLayout extends ScoreLayout {
32689
32698
  const partialIndex = i;
32690
32699
  this._group.buildBoundingsLookup(this._group.x, this._group.y);
32691
32700
  this.registerPartial(e, canvas => {
32692
- canvas.color = this.renderer.settings.display.resources.mainGlyphColor;
32693
- canvas.textAlign = TextAlign.Left;
32694
32701
  let renderX = this._group.getBarX(partial.masterBars[0].index) + this._group.accoladeSpacing;
32695
32702
  if (partialIndex === 0) {
32696
32703
  renderX -= this._group.x + this._group.accoladeSpacing;
@@ -39942,7 +39949,8 @@ class ResizeObserverPolyfill {
39942
39949
  // not used by alphaTab
39943
39950
  contentRect: undefined,
39944
39951
  borderBoxSize: undefined,
39945
- contentBoxSize: []
39952
+ contentBoxSize: [],
39953
+ devicePixelContentBoxSize: []
39946
39954
  });
39947
39955
  }
39948
39956
  this._callback(entries, this);
@@ -40591,8 +40599,8 @@ class CoreSettings {
40591
40599
  // </auto-generated>
40592
40600
  class VersionInfo {
40593
40601
  }
40594
- VersionInfo.version = '1.3.0-alpha.170';
40595
- VersionInfo.date = '2022-02-11T00:32:13.537Z';
40602
+ VersionInfo.version = '1.3.0-alpha.172';
40603
+ VersionInfo.date = '2022-02-13T00:32:25.182Z';
40596
40604
 
40597
40605
  var index$5 = /*#__PURE__*/Object.freeze({
40598
40606
  __proto__: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coderline/alphatab",
3
- "version": "1.3.0-alpha.170",
3
+ "version": "1.3.0-alpha.172",
4
4
  "description": "alphaTab is a music notation and guitar tablature rendering library",
5
5
  "keywords": [
6
6
  "guitar",
@@ -42,25 +42,25 @@
42
42
  "build-ci": "npm run clean && npm run build && npm pack",
43
43
  "build-csharp": "npm run generate-csharp && cd src.csharp && dotnet build -c Release",
44
44
  "build-csharp-ci": "npm run clean && npm run generate-csharp && cd src.csharp && dotnet build -c Release",
45
- "build-kotlin": "npm run generate-kotlin && cd src.kotlin/alphaTab && gradlew assemble",
46
- "build-kotlin-ci": "npm run clean && npm run generate-kotlin && cd src.kotlin/alphaTab && gradlew assemble",
45
+ "build-kotlin": "npm run generate-kotlin && cd src.kotlin/alphaTab && gradlew assembleRelease",
46
+ "build-kotlin-ci": "npm run clean && npm run generate-kotlin && cd src.kotlin/alphaTab && gradlew assembleRelease",
47
47
  "start": "node scripts/setup-playground.js && npm run build && concurrently --kill-others \"tsc --project tsconfig.build.json --watch\" \"rollup -c rollup.config.js -w\"",
48
48
  "test": "npm run generate-typescript && tsc --project tsconfig.json && concurrently --kill-others \"tsc --project tsconfig.json -w\" \"karma start karma.conf.js --browsers Chrome --no-single-run --reporters spec,kjhtml\"",
49
49
  "test-ci": "npm run generate-typescript && tsc --project tsconfig.json && karma start karma.conf.js --browsers ChromeHeadless --single-run --reporters spec",
50
- "test-csharp": "cd src.csharp && dotnet test",
51
- "test-csharp-ci": "cd src.csharp && dotnet test",
52
- "test-kotlin": "cd src.kotlin/alphaTab && gradlew jvmTest",
53
- "test-kotlin-ci": "cd src.kotlin/alphaTab && gradlew jvmTest"
50
+ "test-csharp": "cd src.csharp && dotnet test -c Release",
51
+ "test-csharp-ci": "cd src.csharp && dotnet test -c Release",
52
+ "test-kotlin": "cd src.kotlin/alphaTab && gradlew testReleaseUnitTest",
53
+ "test-kotlin-ci": "cd src.kotlin/alphaTab && gradlew testReleaseUnitTest"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@rollup/plugin-commonjs": "^21.0.1",
57
57
  "@types/css-font-loading-module": "0.0.7",
58
58
  "@types/jasmine": "^3.10.2",
59
- "@types/resize-observer-browser": "^0.1.6",
59
+ "@types/resize-observer-browser": "^0.1.7",
60
60
  "concurrently": "^7.0.0",
61
61
  "cors": "^2.8.5",
62
62
  "fs-extra": "^10.0.0",
63
- "karma": "^6.3.9",
63
+ "karma": "^6.3.16",
64
64
  "karma-chrome-launcher": "^3.1.0",
65
65
  "karma-express-http-server": "0.0.1",
66
66
  "karma-jasmine": "^4.0.1",