@coderline/alphatab 1.3.0-alpha.404 → 1.3.0-alpha.411

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.404 (develop, build 404)
2
+ * alphaTab v1.3.0-alpha.411 (develop, build 411)
3
3
  *
4
4
  * Copyright © 2022, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -6966,6 +6966,38 @@ class AlphaTexImporter extends ScoreImporter {
6966
6966
  this._sy = this.newSy();
6967
6967
  return true;
6968
6968
  }
6969
+ if (syData === 'bu' || syData === 'bd' || syData === 'au' || syData === 'ad') {
6970
+ switch (syData) {
6971
+ case 'bu':
6972
+ beat.brushType = BrushType.BrushUp;
6973
+ break;
6974
+ case 'bd':
6975
+ beat.brushType = BrushType.BrushDown;
6976
+ break;
6977
+ case 'au':
6978
+ beat.brushType = BrushType.ArpeggioUp;
6979
+ break;
6980
+ case 'ad':
6981
+ beat.brushType = BrushType.ArpeggioDown;
6982
+ break;
6983
+ }
6984
+ this._sy = this.newSy();
6985
+ if (this._sy === AlphaTexSymbols.Number) {
6986
+ // explicit duration
6987
+ beat.brushDuration = this._syData;
6988
+ this._sy = this.newSy();
6989
+ return true;
6990
+ }
6991
+ // default to calcuated duration
6992
+ beat.updateDurations();
6993
+ if (syData === 'bu' || syData === 'bd') {
6994
+ beat.brushDuration = beat.playbackDuration / 4 / beat.notes.length;
6995
+ }
6996
+ else if (syData === 'au' || syData === 'ad') {
6997
+ beat.brushDuration = beat.playbackDuration / beat.notes.length;
6998
+ }
6999
+ return true;
7000
+ }
6969
7001
  if (syData === 'ch') {
6970
7002
  this._sy = this.newSy();
6971
7003
  let chordName = this._syData;
@@ -13891,6 +13923,9 @@ class MusicXmlImporter extends ScoreImporter {
13891
13923
  tempoAutomation.type = AutomationType.Tempo;
13892
13924
  tempoAutomation.value = parseInt(tempo);
13893
13925
  masterBar.tempoAutomation = tempoAutomation;
13926
+ if (masterBar.index === 0) {
13927
+ masterBar.score.tempo = tempoAutomation.value;
13928
+ }
13894
13929
  }
13895
13930
  break;
13896
13931
  case 'direction-type':
@@ -13927,6 +13962,9 @@ class MusicXmlImporter extends ScoreImporter {
13927
13962
  tempoAutomation.type = AutomationType.Tempo;
13928
13963
  tempoAutomation.value = perMinute * ((unit / 4) | 0);
13929
13964
  masterBar.tempoAutomation = tempoAutomation;
13965
+ if (masterBar.index === 0) {
13966
+ masterBar.score.tempo = tempoAutomation.value;
13967
+ }
13930
13968
  }
13931
13969
  parseAttributes(element, bars, masterBar, track) {
13932
13970
  let num = 0;
@@ -23040,14 +23078,14 @@ class MidiFileGenerator {
23040
23078
  this._handler.addTimeSignature(currentTick, masterBar.timeSignatureNumerator, masterBar.timeSignatureDenominator);
23041
23079
  }
23042
23080
  // tempo
23043
- if (!previousMasterBar) {
23044
- this._handler.addTempo(currentTick, masterBar.score.tempo);
23045
- this._currentTempo = masterBar.score.tempo;
23046
- }
23047
- else if (masterBar.tempoAutomation) {
23081
+ if (masterBar.tempoAutomation) {
23048
23082
  this._handler.addTempo(currentTick, masterBar.tempoAutomation.value);
23049
23083
  this._currentTempo = masterBar.tempoAutomation.value;
23050
23084
  }
23085
+ else if (!previousMasterBar) {
23086
+ this._handler.addTempo(currentTick, masterBar.score.tempo);
23087
+ this._currentTempo = masterBar.score.tempo;
23088
+ }
23051
23089
  const masterBarLookup = new MasterBarTickLookup();
23052
23090
  masterBarLookup.masterBar = masterBar;
23053
23091
  masterBarLookup.start = currentTick;
@@ -41129,8 +41167,8 @@ class CoreSettings {
41129
41167
  // </auto-generated>
41130
41168
  class VersionInfo {
41131
41169
  }
41132
- VersionInfo.version = '1.3.0-alpha.404';
41133
- VersionInfo.date = '2022-09-27T01:02:33.371Z';
41170
+ VersionInfo.version = '1.3.0-alpha.411';
41171
+ VersionInfo.date = '2022-10-04T01:07:09.329Z';
41134
41172
 
41135
41173
  var index$5 = /*#__PURE__*/Object.freeze({
41136
41174
  __proto__: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coderline/alphatab",
3
- "version": "1.3.0-alpha.404",
3
+ "version": "1.3.0-alpha.411",
4
4
  "description": "alphaTab is a music notation and guitar tablature rendering library",
5
5
  "keywords": [
6
6
  "guitar",