@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.js +46 -8
- package/dist/alphaTab.min.js +2 -2
- package/dist/alphaTab.min.mjs +2 -2
- package/dist/alphaTab.mjs +46 -8
- package/package.json +1 -1
package/dist/alphaTab.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* alphaTab v1.3.0-alpha.
|
|
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
|
*
|
|
@@ -6972,6 +6972,38 @@
|
|
|
6972
6972
|
this._sy = this.newSy();
|
|
6973
6973
|
return true;
|
|
6974
6974
|
}
|
|
6975
|
+
if (syData === 'bu' || syData === 'bd' || syData === 'au' || syData === 'ad') {
|
|
6976
|
+
switch (syData) {
|
|
6977
|
+
case 'bu':
|
|
6978
|
+
beat.brushType = BrushType.BrushUp;
|
|
6979
|
+
break;
|
|
6980
|
+
case 'bd':
|
|
6981
|
+
beat.brushType = BrushType.BrushDown;
|
|
6982
|
+
break;
|
|
6983
|
+
case 'au':
|
|
6984
|
+
beat.brushType = BrushType.ArpeggioUp;
|
|
6985
|
+
break;
|
|
6986
|
+
case 'ad':
|
|
6987
|
+
beat.brushType = BrushType.ArpeggioDown;
|
|
6988
|
+
break;
|
|
6989
|
+
}
|
|
6990
|
+
this._sy = this.newSy();
|
|
6991
|
+
if (this._sy === AlphaTexSymbols.Number) {
|
|
6992
|
+
// explicit duration
|
|
6993
|
+
beat.brushDuration = this._syData;
|
|
6994
|
+
this._sy = this.newSy();
|
|
6995
|
+
return true;
|
|
6996
|
+
}
|
|
6997
|
+
// default to calcuated duration
|
|
6998
|
+
beat.updateDurations();
|
|
6999
|
+
if (syData === 'bu' || syData === 'bd') {
|
|
7000
|
+
beat.brushDuration = beat.playbackDuration / 4 / beat.notes.length;
|
|
7001
|
+
}
|
|
7002
|
+
else if (syData === 'au' || syData === 'ad') {
|
|
7003
|
+
beat.brushDuration = beat.playbackDuration / beat.notes.length;
|
|
7004
|
+
}
|
|
7005
|
+
return true;
|
|
7006
|
+
}
|
|
6975
7007
|
if (syData === 'ch') {
|
|
6976
7008
|
this._sy = this.newSy();
|
|
6977
7009
|
let chordName = this._syData;
|
|
@@ -13897,6 +13929,9 @@
|
|
|
13897
13929
|
tempoAutomation.type = AutomationType.Tempo;
|
|
13898
13930
|
tempoAutomation.value = parseInt(tempo);
|
|
13899
13931
|
masterBar.tempoAutomation = tempoAutomation;
|
|
13932
|
+
if (masterBar.index === 0) {
|
|
13933
|
+
masterBar.score.tempo = tempoAutomation.value;
|
|
13934
|
+
}
|
|
13900
13935
|
}
|
|
13901
13936
|
break;
|
|
13902
13937
|
case 'direction-type':
|
|
@@ -13933,6 +13968,9 @@
|
|
|
13933
13968
|
tempoAutomation.type = AutomationType.Tempo;
|
|
13934
13969
|
tempoAutomation.value = perMinute * ((unit / 4) | 0);
|
|
13935
13970
|
masterBar.tempoAutomation = tempoAutomation;
|
|
13971
|
+
if (masterBar.index === 0) {
|
|
13972
|
+
masterBar.score.tempo = tempoAutomation.value;
|
|
13973
|
+
}
|
|
13936
13974
|
}
|
|
13937
13975
|
parseAttributes(element, bars, masterBar, track) {
|
|
13938
13976
|
let num = 0;
|
|
@@ -23046,14 +23084,14 @@
|
|
|
23046
23084
|
this._handler.addTimeSignature(currentTick, masterBar.timeSignatureNumerator, masterBar.timeSignatureDenominator);
|
|
23047
23085
|
}
|
|
23048
23086
|
// tempo
|
|
23049
|
-
if (
|
|
23050
|
-
this._handler.addTempo(currentTick, masterBar.score.tempo);
|
|
23051
|
-
this._currentTempo = masterBar.score.tempo;
|
|
23052
|
-
}
|
|
23053
|
-
else if (masterBar.tempoAutomation) {
|
|
23087
|
+
if (masterBar.tempoAutomation) {
|
|
23054
23088
|
this._handler.addTempo(currentTick, masterBar.tempoAutomation.value);
|
|
23055
23089
|
this._currentTempo = masterBar.tempoAutomation.value;
|
|
23056
23090
|
}
|
|
23091
|
+
else if (!previousMasterBar) {
|
|
23092
|
+
this._handler.addTempo(currentTick, masterBar.score.tempo);
|
|
23093
|
+
this._currentTempo = masterBar.score.tempo;
|
|
23094
|
+
}
|
|
23057
23095
|
const masterBarLookup = new MasterBarTickLookup();
|
|
23058
23096
|
masterBarLookup.masterBar = masterBar;
|
|
23059
23097
|
masterBarLookup.start = currentTick;
|
|
@@ -41135,8 +41173,8 @@
|
|
|
41135
41173
|
// </auto-generated>
|
|
41136
41174
|
class VersionInfo {
|
|
41137
41175
|
}
|
|
41138
|
-
VersionInfo.version = '1.3.0-alpha.
|
|
41139
|
-
VersionInfo.date = '2022-
|
|
41176
|
+
VersionInfo.version = '1.3.0-alpha.411';
|
|
41177
|
+
VersionInfo.date = '2022-10-04T01:07:09.329Z';
|
|
41140
41178
|
|
|
41141
41179
|
var index$5 = /*#__PURE__*/Object.freeze({
|
|
41142
41180
|
__proto__: null,
|