@coderline/alphatab 1.3.0-alpha.684 → 1.3.0-alpha.694

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.684 (develop, build 684)
2
+ * alphaTab v1.3.0-alpha.694 (develop, build 694)
3
3
  *
4
4
  * Copyright © 2023, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -2823,6 +2823,7 @@ class Note {
2823
2823
  return null;
2824
2824
  }
2825
2825
  chain(sharedDataBag = null) {
2826
+ var _a;
2826
2827
  // mainly for backwards compat in case we reach this code from somewhere outside.
2827
2828
  if (sharedDataBag === null) {
2828
2829
  return;
@@ -2863,10 +2864,11 @@ class Note {
2863
2864
  this._noteIdBag = null; // not needed anymore
2864
2865
  }
2865
2866
  else {
2866
- if (!this.isTieDestination && this.tieOrigin == null) {
2867
+ // no tie destination at all?
2868
+ if (!this.isTieDestination && this.tieOrigin === null) {
2867
2869
  return;
2868
2870
  }
2869
- let tieOrigin = Note.findTieOrigin(this);
2871
+ let tieOrigin = (_a = this.tieOrigin) !== null && _a !== void 0 ? _a : Note.findTieOrigin(this);
2870
2872
  if (!tieOrigin) {
2871
2873
  this.isTieDestination = false;
2872
2874
  }
@@ -10453,6 +10455,11 @@ class GpifParser {
10453
10455
  parseDiagramItemForChord(chord, node) {
10454
10456
  chord.name = node.getAttribute('name');
10455
10457
  let diagram = node.findChildElement('Diagram');
10458
+ if (!diagram) {
10459
+ chord.showDiagram = false;
10460
+ chord.showFingering = false;
10461
+ return;
10462
+ }
10456
10463
  let stringCount = parseInt(diagram.getAttribute('stringCount'));
10457
10464
  let baseFret = parseInt(diagram.getAttribute('baseFret'));
10458
10465
  chord.firstFret = baseFret + 1;
@@ -13714,8 +13721,14 @@ class MusicXmlImporter extends ScoreImporter {
13714
13721
  }
13715
13722
  }
13716
13723
  else if (element.getAttribute('type') === 'stop' && this._tieStarts.length > 0 && !note.isTieDestination) {
13717
- note.isTieDestination = true;
13718
- note.tieOrigin = this._tieStarts[0];
13724
+ const tieOrigin = this._tieStarts[0];
13725
+ // no cross track/staff or voice ties supported for now
13726
+ if (tieOrigin.beat.voice.index === note.beat.voice.index &&
13727
+ tieOrigin.beat.voice.bar.staff.index === note.beat.voice.bar.staff.index &&
13728
+ tieOrigin.beat.voice.bar.staff.track.index === note.beat.voice.bar.staff.track.index) {
13729
+ note.isTieDestination = true;
13730
+ note.tieOrigin = this._tieStarts[0];
13731
+ }
13719
13732
  this._tieStarts.splice(0, 1);
13720
13733
  this._tieStartIds.delete(note.id);
13721
13734
  }
@@ -41667,8 +41680,8 @@ class CoreSettings {
41667
41680
  // </auto-generated>
41668
41681
  class VersionInfo {
41669
41682
  }
41670
- VersionInfo.version = '1.3.0-alpha.684';
41671
- VersionInfo.date = '2023-06-27T02:04:02.709Z';
41683
+ VersionInfo.version = '1.3.0-alpha.694';
41684
+ VersionInfo.date = '2023-07-07T02:02:30.846Z';
41672
41685
 
41673
41686
  var index$5 = /*#__PURE__*/Object.freeze({
41674
41687
  __proto__: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coderline/alphatab",
3
- "version": "1.3.0-alpha.684",
3
+ "version": "1.3.0-alpha.694",
4
4
  "description": "alphaTab is a music notation and guitar tablature rendering library",
5
5
  "keywords": [
6
6
  "guitar",