@coderline/alphatab 1.3.0-alpha.919 → 1.3.0-alpha.932
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 +12 -6
- package/dist/alphaTab.min.js +1 -1
- package/dist/alphaTab.min.mjs +1 -1
- package/dist/alphaTab.mjs +12 -6
- package/package.json +2 -2
package/dist/alphaTab.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* alphaTab v1.3.0-alpha.
|
|
2
|
+
* alphaTab v1.3.0-alpha.932 (develop, build 932)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2024, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -5824,6 +5824,7 @@
|
|
|
5824
5824
|
this._sy = AlphaTexSymbols.No;
|
|
5825
5825
|
this._syData = "";
|
|
5826
5826
|
this._allowNegatives = false;
|
|
5827
|
+
this._allowFloat = false;
|
|
5827
5828
|
this._allowTuning = false;
|
|
5828
5829
|
this._currentDuration = Duration.QuadrupleWhole;
|
|
5829
5830
|
this._currentDynamics = DynamicValue.PPP;
|
|
@@ -6212,7 +6213,7 @@
|
|
|
6212
6213
|
else if (this._ch === 0x2d /* - */) {
|
|
6213
6214
|
// negative number
|
|
6214
6215
|
// is number?
|
|
6215
|
-
if (this._allowNegatives
|
|
6216
|
+
if (this._allowNegatives) {
|
|
6216
6217
|
this._sy = AlphaTexSymbols.Number;
|
|
6217
6218
|
this._syData = this.readNumber();
|
|
6218
6219
|
}
|
|
@@ -6317,7 +6318,8 @@
|
|
|
6317
6318
|
}
|
|
6318
6319
|
isDigit(ch) {
|
|
6319
6320
|
return ((ch >= 0x30 && ch <= 0x39) /* 0-9 */ ||
|
|
6320
|
-
(this._allowNegatives && ch === 0x2d /* - */) // allow minus sign if negatives
|
|
6321
|
+
(this._allowNegatives && ch === 0x2d /* - */) || // allow minus sign if negatives
|
|
6322
|
+
(this._allowFloat && ch === 0x2e /* . */) // allow dot if float
|
|
6321
6323
|
);
|
|
6322
6324
|
}
|
|
6323
6325
|
/**
|
|
@@ -6342,7 +6344,7 @@
|
|
|
6342
6344
|
str += String.fromCharCode(this._ch);
|
|
6343
6345
|
this._ch = this.nextChar();
|
|
6344
6346
|
} while (this.isDigit(this._ch));
|
|
6345
|
-
return parseInt(str);
|
|
6347
|
+
return this._allowFloat ? parseFloat(str) : parseInt(str);
|
|
6346
6348
|
}
|
|
6347
6349
|
metaData() {
|
|
6348
6350
|
let anyMeta = false;
|
|
@@ -6391,7 +6393,9 @@
|
|
|
6391
6393
|
anyMeta = true;
|
|
6392
6394
|
break;
|
|
6393
6395
|
case 'tempo':
|
|
6396
|
+
this._allowFloat = true;
|
|
6394
6397
|
this._sy = this.newSy();
|
|
6398
|
+
this._allowFloat = false;
|
|
6395
6399
|
if (this._sy === AlphaTexSymbols.Number) {
|
|
6396
6400
|
this._score.tempo = this._syData;
|
|
6397
6401
|
}
|
|
@@ -7600,7 +7604,9 @@
|
|
|
7600
7604
|
this._sy = this.newSy();
|
|
7601
7605
|
}
|
|
7602
7606
|
else if (syData === 'tempo') {
|
|
7607
|
+
this._allowFloat = true;
|
|
7603
7608
|
this._sy = this.newSy();
|
|
7609
|
+
this._allowFloat = false;
|
|
7604
7610
|
if (this._sy !== AlphaTexSymbols.Number) {
|
|
7605
7611
|
this.error('tempo', AlphaTexSymbols.Number, true);
|
|
7606
7612
|
}
|
|
@@ -42852,8 +42858,8 @@
|
|
|
42852
42858
|
// </auto-generated>
|
|
42853
42859
|
class VersionInfo {
|
|
42854
42860
|
}
|
|
42855
|
-
VersionInfo.version = '1.3.0-alpha.
|
|
42856
|
-
VersionInfo.date = '2024-02-
|
|
42861
|
+
VersionInfo.version = '1.3.0-alpha.932';
|
|
42862
|
+
VersionInfo.date = '2024-02-26T01:20:30.939Z';
|
|
42857
42863
|
|
|
42858
42864
|
var index$5 = /*#__PURE__*/Object.freeze({
|
|
42859
42865
|
__proto__: null,
|