@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.mjs
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
|
*
|
|
@@ -5818,6 +5818,7 @@ class AlphaTexImporter extends ScoreImporter {
|
|
|
5818
5818
|
this._sy = AlphaTexSymbols.No;
|
|
5819
5819
|
this._syData = "";
|
|
5820
5820
|
this._allowNegatives = false;
|
|
5821
|
+
this._allowFloat = false;
|
|
5821
5822
|
this._allowTuning = false;
|
|
5822
5823
|
this._currentDuration = Duration.QuadrupleWhole;
|
|
5823
5824
|
this._currentDynamics = DynamicValue.PPP;
|
|
@@ -6206,7 +6207,7 @@ class AlphaTexImporter extends ScoreImporter {
|
|
|
6206
6207
|
else if (this._ch === 0x2d /* - */) {
|
|
6207
6208
|
// negative number
|
|
6208
6209
|
// is number?
|
|
6209
|
-
if (this._allowNegatives
|
|
6210
|
+
if (this._allowNegatives) {
|
|
6210
6211
|
this._sy = AlphaTexSymbols.Number;
|
|
6211
6212
|
this._syData = this.readNumber();
|
|
6212
6213
|
}
|
|
@@ -6311,7 +6312,8 @@ class AlphaTexImporter extends ScoreImporter {
|
|
|
6311
6312
|
}
|
|
6312
6313
|
isDigit(ch) {
|
|
6313
6314
|
return ((ch >= 0x30 && ch <= 0x39) /* 0-9 */ ||
|
|
6314
|
-
(this._allowNegatives && ch === 0x2d /* - */) // allow minus sign if negatives
|
|
6315
|
+
(this._allowNegatives && ch === 0x2d /* - */) || // allow minus sign if negatives
|
|
6316
|
+
(this._allowFloat && ch === 0x2e /* . */) // allow dot if float
|
|
6315
6317
|
);
|
|
6316
6318
|
}
|
|
6317
6319
|
/**
|
|
@@ -6336,7 +6338,7 @@ class AlphaTexImporter extends ScoreImporter {
|
|
|
6336
6338
|
str += String.fromCharCode(this._ch);
|
|
6337
6339
|
this._ch = this.nextChar();
|
|
6338
6340
|
} while (this.isDigit(this._ch));
|
|
6339
|
-
return parseInt(str);
|
|
6341
|
+
return this._allowFloat ? parseFloat(str) : parseInt(str);
|
|
6340
6342
|
}
|
|
6341
6343
|
metaData() {
|
|
6342
6344
|
let anyMeta = false;
|
|
@@ -6385,7 +6387,9 @@ class AlphaTexImporter extends ScoreImporter {
|
|
|
6385
6387
|
anyMeta = true;
|
|
6386
6388
|
break;
|
|
6387
6389
|
case 'tempo':
|
|
6390
|
+
this._allowFloat = true;
|
|
6388
6391
|
this._sy = this.newSy();
|
|
6392
|
+
this._allowFloat = false;
|
|
6389
6393
|
if (this._sy === AlphaTexSymbols.Number) {
|
|
6390
6394
|
this._score.tempo = this._syData;
|
|
6391
6395
|
}
|
|
@@ -7594,7 +7598,9 @@ class AlphaTexImporter extends ScoreImporter {
|
|
|
7594
7598
|
this._sy = this.newSy();
|
|
7595
7599
|
}
|
|
7596
7600
|
else if (syData === 'tempo') {
|
|
7601
|
+
this._allowFloat = true;
|
|
7597
7602
|
this._sy = this.newSy();
|
|
7603
|
+
this._allowFloat = false;
|
|
7598
7604
|
if (this._sy !== AlphaTexSymbols.Number) {
|
|
7599
7605
|
this.error('tempo', AlphaTexSymbols.Number, true);
|
|
7600
7606
|
}
|
|
@@ -42846,8 +42852,8 @@ class CoreSettings {
|
|
|
42846
42852
|
// </auto-generated>
|
|
42847
42853
|
class VersionInfo {
|
|
42848
42854
|
}
|
|
42849
|
-
VersionInfo.version = '1.3.0-alpha.
|
|
42850
|
-
VersionInfo.date = '2024-02-
|
|
42855
|
+
VersionInfo.version = '1.3.0-alpha.932';
|
|
42856
|
+
VersionInfo.date = '2024-02-26T01:20:30.939Z';
|
|
42851
42857
|
|
|
42852
42858
|
var index$5 = /*#__PURE__*/Object.freeze({
|
|
42853
42859
|
__proto__: null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coderline/alphatab",
|
|
3
|
-
"version": "1.3.0-alpha.
|
|
3
|
+
"version": "1.3.0-alpha.932",
|
|
4
4
|
"description": "alphaTab is a music notation and guitar tablature rendering library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"guitar",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@rollup/plugin-terser": "^0.4.4",
|
|
63
63
|
"@types/chai": "^4.3.9",
|
|
64
64
|
"@types/mocha": "^10.0.3",
|
|
65
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
66
66
|
"@typescript-eslint/parser": "^6.9.1",
|
|
67
67
|
"assert": "^2.1.0",
|
|
68
68
|
"chai": "^5.0.0",
|