@coderline/alphatab 1.3.0-alpha.418 → 1.3.0-alpha.422
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.d.ts +1 -0
- package/dist/alphaTab.js +9 -6
- package/dist/alphaTab.min.js +2 -2
- package/dist/alphaTab.min.mjs +2 -2
- package/dist/alphaTab.mjs +9 -6
- package/package.json +2 -6
package/dist/alphaTab.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* alphaTab v1.3.0-alpha.
|
|
2
|
+
* alphaTab v1.3.0-alpha.422 (develop, build 422)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2022, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -22998,6 +22998,7 @@ class MidiFileGenerator {
|
|
|
22998
22998
|
*/
|
|
22999
22999
|
this.tickLookup = new MidiTickLookup();
|
|
23000
23000
|
this._currentTripletFeel = null;
|
|
23001
|
+
this.vibratoResolution = 16;
|
|
23001
23002
|
this._score = score;
|
|
23002
23003
|
this._settings = !settings ? new Settings() : settings;
|
|
23003
23004
|
this._currentTempo = this._score.tempo;
|
|
@@ -23336,7 +23337,7 @@ class MidiFileGenerator {
|
|
|
23336
23337
|
else if (note.slideInType !== SlideInType.None || note.slideOutType !== SlideOutType.None) {
|
|
23337
23338
|
this.generateSlide(note, noteStart, noteDuration, noteKey, dynamicValue, channel);
|
|
23338
23339
|
}
|
|
23339
|
-
else if (note.vibrato !== VibratoType.None) {
|
|
23340
|
+
else if (note.vibrato !== VibratoType.None || (note.isTieDestination && note.tieOrigin.vibrato !== VibratoType.None)) {
|
|
23340
23341
|
this.generateVibrato(note, noteStart, noteDuration, noteKey, channel);
|
|
23341
23342
|
}
|
|
23342
23343
|
// for tied notes, and target notes of legato slides we do not pick the note
|
|
@@ -23482,7 +23483,9 @@ class MidiFileGenerator {
|
|
|
23482
23483
|
generateVibrato(note, noteStart, noteDuration, noteKey, channel) {
|
|
23483
23484
|
let phaseLength = 0;
|
|
23484
23485
|
let bendAmplitude = 0;
|
|
23485
|
-
|
|
23486
|
+
const vibratoType = note.vibrato !== VibratoType.None ? note.vibrato : (note.isTieDestination ? note.tieOrigin.vibrato :
|
|
23487
|
+
VibratoType.Slight /* should never happen unless called wrongly */);
|
|
23488
|
+
switch (vibratoType) {
|
|
23486
23489
|
case VibratoType.Slight:
|
|
23487
23490
|
phaseLength = this._settings.player.vibrato.noteSlightLength;
|
|
23488
23491
|
bendAmplitude = this._settings.player.vibrato.noteSlightAmplitude;
|
|
@@ -23500,7 +23503,7 @@ class MidiFileGenerator {
|
|
|
23500
23503
|
});
|
|
23501
23504
|
}
|
|
23502
23505
|
generateVibratorWithParams(noteStart, noteDuration, phaseLength, bendAmplitude, addBend) {
|
|
23503
|
-
const resolution =
|
|
23506
|
+
const resolution = this.vibratoResolution;
|
|
23504
23507
|
const phaseHalf = (phaseLength / 2) | 0;
|
|
23505
23508
|
// 1st Phase stays at bend 0,
|
|
23506
23509
|
// then we have a sine wave with the given amplitude and phase length
|
|
@@ -41378,8 +41381,8 @@ class CoreSettings {
|
|
|
41378
41381
|
// </auto-generated>
|
|
41379
41382
|
class VersionInfo {
|
|
41380
41383
|
}
|
|
41381
|
-
VersionInfo.version = '1.3.0-alpha.
|
|
41382
|
-
VersionInfo.date = '2022-10-
|
|
41384
|
+
VersionInfo.version = '1.3.0-alpha.422';
|
|
41385
|
+
VersionInfo.date = '2022-10-15T01:02:48.729Z';
|
|
41383
41386
|
|
|
41384
41387
|
var index$5 = /*#__PURE__*/Object.freeze({
|
|
41385
41388
|
__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.422",
|
|
4
4
|
"description": "alphaTab is a music notation and guitar tablature rendering library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"guitar",
|
|
@@ -56,9 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@rollup/plugin-commonjs": "^23.0.0",
|
|
59
|
-
"@types/css-font-loading-module": "0.0.7",
|
|
60
59
|
"@types/jasmine": "^4.0.3",
|
|
61
|
-
"@types/resize-observer-browser": "^0.1.7",
|
|
62
60
|
"concurrently": "^7.2.1",
|
|
63
61
|
"cors": "^2.8.5",
|
|
64
62
|
"fs-extra": "^10.1.0",
|
|
@@ -69,8 +67,7 @@
|
|
|
69
67
|
"karma-jasmine-html-reporter": "^2.0.0",
|
|
70
68
|
"karma-rollup-preprocessor": "^7.0.8",
|
|
71
69
|
"karma-spec-reporter": "0.0.34",
|
|
72
|
-
"
|
|
73
|
-
"multer": "^1.4.4",
|
|
70
|
+
"multer": "^1.4.5-lts.1",
|
|
74
71
|
"rimraf": "^3.0.2",
|
|
75
72
|
"rollup": "^2.75.1",
|
|
76
73
|
"rollup-plugin-copy": "^3.4.0",
|
|
@@ -83,7 +80,6 @@
|
|
|
83
80
|
"tslint": "^6.1.3",
|
|
84
81
|
"tslint-config-prettier": "^1.18.0",
|
|
85
82
|
"tslint-config-standard": "^9.0.0",
|
|
86
|
-
"ttypescript": "^1.5.13",
|
|
87
83
|
"typescript": "^4.8.3"
|
|
88
84
|
},
|
|
89
85
|
"files": [
|