@coderline/alphatab 1.3.0-alpha.162 → 1.3.0-alpha.172
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 +1061 -1054
- package/dist/alphaTab.js +17 -9
- package/dist/alphaTab.min.js +2 -2
- package/dist/alphaTab.min.mjs +2 -2
- package/dist/alphaTab.mjs +17 -9
- package/package.json +9 -9
package/dist/alphaTab.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* alphaTab v1.3.0-alpha.
|
|
2
|
+
* alphaTab v1.3.0-alpha.172 (develop, build 172)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2022, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -14846,7 +14846,7 @@
|
|
|
14846
14846
|
const chunkHead = new RiffChunk();
|
|
14847
14847
|
const chunkFastList = new RiffChunk();
|
|
14848
14848
|
if (!RiffChunk.load(null, chunkHead, readable) || chunkHead.id !== 'sfbk') {
|
|
14849
|
-
throw new FormatError(
|
|
14849
|
+
throw new FormatError('Soundfont is not a valid Soundfont2 file');
|
|
14850
14850
|
}
|
|
14851
14851
|
while (RiffChunk.load(chunkHead, chunkFastList, readable)) {
|
|
14852
14852
|
let chunk = new RiffChunk();
|
|
@@ -14925,7 +14925,7 @@
|
|
|
14925
14925
|
let samplesLeft = (chunk.size / 2) | 0;
|
|
14926
14926
|
const samples = new Float32Array(samplesLeft);
|
|
14927
14927
|
let samplesPos = 0;
|
|
14928
|
-
const sampleBuffer = new Uint8Array(
|
|
14928
|
+
const sampleBuffer = new Uint8Array(16 * 1024);
|
|
14929
14929
|
while (samplesLeft > 0) {
|
|
14930
14930
|
let samplesToRead = Math.min(samplesLeft, (sampleBuffer.length / 2) | 0);
|
|
14931
14931
|
reader.read(sampleBuffer, 0, samplesToRead * 2);
|
|
@@ -21092,7 +21092,7 @@
|
|
|
21092
21092
|
for (let note of notes) {
|
|
21093
21093
|
let bottom = note.noteHeadBounds.y + note.noteHeadBounds.h;
|
|
21094
21094
|
let right = note.noteHeadBounds.x + note.noteHeadBounds.w;
|
|
21095
|
-
if (note.noteHeadBounds.x
|
|
21095
|
+
if (note.noteHeadBounds.x <= x && note.noteHeadBounds.y <= y && x <= right && y <= bottom) {
|
|
21096
21096
|
return note.note;
|
|
21097
21097
|
}
|
|
21098
21098
|
}
|
|
@@ -22419,15 +22419,18 @@
|
|
|
22419
22419
|
/**
|
|
22420
22420
|
* Gets a dictionary of all master bars played. The index is the index equals to {@link MasterBar.index}.
|
|
22421
22421
|
* This lookup only contains the first time a MasterBar is played. For a whole sequence of the song refer to {@link MasterBars}.
|
|
22422
|
+
* @internal
|
|
22422
22423
|
*/
|
|
22423
22424
|
this.masterBarLookup = new Map();
|
|
22424
22425
|
/**
|
|
22425
22426
|
* Gets a list of all {@link MasterBarTickLookup} sorted by time.
|
|
22427
|
+
* @internal
|
|
22426
22428
|
*/
|
|
22427
22429
|
this.masterBars = [];
|
|
22428
22430
|
}
|
|
22429
22431
|
/**
|
|
22430
22432
|
* Performs the neccessary finalization steps after all information was written.
|
|
22433
|
+
* @internal
|
|
22431
22434
|
*/
|
|
22432
22435
|
finish() {
|
|
22433
22436
|
let previous = null;
|
|
@@ -24334,6 +24337,12 @@
|
|
|
24334
24337
|
this.uiFacade.canRenderChanged.on(() => this.render());
|
|
24335
24338
|
}
|
|
24336
24339
|
}
|
|
24340
|
+
/**
|
|
24341
|
+
* Gets the tick cache related to the current score.
|
|
24342
|
+
*/
|
|
24343
|
+
get tickCache() {
|
|
24344
|
+
return this._tickCache;
|
|
24345
|
+
}
|
|
24337
24346
|
get isReadyForPlayback() {
|
|
24338
24347
|
if (!this.player) {
|
|
24339
24348
|
return false;
|
|
@@ -32695,8 +32704,6 @@
|
|
|
32695
32704
|
const partialIndex = i;
|
|
32696
32705
|
this._group.buildBoundingsLookup(this._group.x, this._group.y);
|
|
32697
32706
|
this.registerPartial(e, canvas => {
|
|
32698
|
-
canvas.color = this.renderer.settings.display.resources.mainGlyphColor;
|
|
32699
|
-
canvas.textAlign = TextAlign.Left;
|
|
32700
32707
|
let renderX = this._group.getBarX(partial.masterBars[0].index) + this._group.accoladeSpacing;
|
|
32701
32708
|
if (partialIndex === 0) {
|
|
32702
32709
|
renderX -= this._group.x + this._group.accoladeSpacing;
|
|
@@ -39948,7 +39955,8 @@
|
|
|
39948
39955
|
// not used by alphaTab
|
|
39949
39956
|
contentRect: undefined,
|
|
39950
39957
|
borderBoxSize: undefined,
|
|
39951
|
-
contentBoxSize: []
|
|
39958
|
+
contentBoxSize: [],
|
|
39959
|
+
devicePixelContentBoxSize: []
|
|
39952
39960
|
});
|
|
39953
39961
|
}
|
|
39954
39962
|
this._callback(entries, this);
|
|
@@ -40597,8 +40605,8 @@
|
|
|
40597
40605
|
// </auto-generated>
|
|
40598
40606
|
class VersionInfo {
|
|
40599
40607
|
}
|
|
40600
|
-
VersionInfo.version = '1.3.0-alpha.
|
|
40601
|
-
VersionInfo.date = '2022-02-
|
|
40608
|
+
VersionInfo.version = '1.3.0-alpha.172';
|
|
40609
|
+
VersionInfo.date = '2022-02-13T00:32:25.182Z';
|
|
40602
40610
|
|
|
40603
40611
|
var index$5 = /*#__PURE__*/Object.freeze({
|
|
40604
40612
|
__proto__: null,
|