@coderline/alphatab 1.6.0-alpha.1409 → 1.6.0-alpha.1416
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.core.min.mjs +2 -2
- package/dist/alphaTab.core.mjs +257 -61
- package/dist/alphaTab.d.ts +66 -6
- package/dist/alphaTab.js +257 -61
- package/dist/alphaTab.min.js +2 -2
- package/dist/alphaTab.min.mjs +1 -1
- package/dist/alphaTab.mjs +1 -1
- package/dist/alphaTab.vite.js +1 -1
- package/dist/alphaTab.vite.mjs +1 -1
- package/dist/alphaTab.webpack.js +1 -1
- package/dist/alphaTab.webpack.mjs +1 -1
- package/dist/alphaTab.worker.min.mjs +1 -1
- package/dist/alphaTab.worker.mjs +1 -1
- package/dist/alphaTab.worklet.min.mjs +1 -1
- package/dist/alphaTab.worklet.mjs +1 -1
- package/package.json +1 -1
package/dist/alphaTab.d.ts
CHANGED
|
@@ -471,12 +471,21 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
471
471
|
private _tracks;
|
|
472
472
|
private _actualPlayerMode;
|
|
473
473
|
private _player;
|
|
474
|
+
private _renderer;
|
|
474
475
|
/**
|
|
475
|
-
* The actual player mode which is currently active
|
|
476
|
+
* The actual player mode which is currently active.
|
|
477
|
+
* @remarks
|
|
478
|
+
* Allows determining whether a backing track or the synthesizer is active in case automatic detection is enabled.
|
|
479
|
+
* @category Properties - Player
|
|
480
|
+
* @since 1.6.0
|
|
476
481
|
*/
|
|
477
482
|
get actualPlayerMode(): PlayerMode;
|
|
478
483
|
/**
|
|
479
|
-
*
|
|
484
|
+
* The UI facade used for interacting with the user interface (like the browser).
|
|
485
|
+
* @remarks
|
|
486
|
+
* The implementation depends on the platform alphaTab is running in (e.g. the web version in the browser, WPF in .net etc.)
|
|
487
|
+
* @category Properties - Core
|
|
488
|
+
* @since 0.9.4
|
|
480
489
|
*/
|
|
481
490
|
readonly uiFacade: IUiFacade<TSettings>;
|
|
482
491
|
/**
|
|
@@ -516,7 +525,7 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
516
525
|
* @category Properties - Core
|
|
517
526
|
* @since 0.9.4
|
|
518
527
|
*/
|
|
519
|
-
|
|
528
|
+
get renderer(): IScoreRenderer;
|
|
520
529
|
/**
|
|
521
530
|
* The score holding all information about the song being rendered
|
|
522
531
|
* @category Properties - Core
|
|
@@ -682,6 +691,7 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
682
691
|
* ```
|
|
683
692
|
*/
|
|
684
693
|
updateSettings(): void;
|
|
694
|
+
private updateRenderer;
|
|
685
695
|
/**
|
|
686
696
|
* Initiates a load of the score using the given data.
|
|
687
697
|
* @returns true if the data object is supported and a load was initiated, otherwise false
|
|
@@ -1376,8 +1386,19 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
1376
1386
|
get isLooping(): boolean;
|
|
1377
1387
|
set isLooping(value: boolean);
|
|
1378
1388
|
private destroyPlayer;
|
|
1389
|
+
/**
|
|
1390
|
+
*
|
|
1391
|
+
* @returns true if a new player was created, false if no player was created (includes destroy & reuse of the current one)
|
|
1392
|
+
*/
|
|
1379
1393
|
private setupOrDestroyPlayer;
|
|
1380
|
-
|
|
1394
|
+
/**
|
|
1395
|
+
* Re-creates the midi for the current score and loads it.
|
|
1396
|
+
* @remarks
|
|
1397
|
+
* This will result in the player to stop playback. Some setting changes require re-genration of the midi song.
|
|
1398
|
+
* @category Methods - Player
|
|
1399
|
+
* @since 1.6.0
|
|
1400
|
+
*/
|
|
1401
|
+
loadMidiForScore(): void;
|
|
1381
1402
|
/**
|
|
1382
1403
|
* Changes the volume of the given tracks.
|
|
1383
1404
|
* @param tracks The tracks for which the volume should be changed.
|
|
@@ -1703,6 +1724,7 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
1703
1724
|
private _previousTick;
|
|
1704
1725
|
private _currentBeat;
|
|
1705
1726
|
private _currentBeatBounds;
|
|
1727
|
+
private _isInitialBeatCursorUpdate;
|
|
1706
1728
|
private _previousStateForCursor;
|
|
1707
1729
|
private _previousCursorCache;
|
|
1708
1730
|
private _lastScroll;
|
|
@@ -2741,7 +2763,43 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
2741
2763
|
*/
|
|
2742
2764
|
get playbackRangeChanged(): IEventEmitterOfT<PlaybackRangeChangedEventArgs>;
|
|
2743
2765
|
private onPlaybackRangeChanged;
|
|
2744
|
-
|
|
2766
|
+
/**
|
|
2767
|
+
* This event is fired when a settings update was requested.
|
|
2768
|
+
*
|
|
2769
|
+
* @eventProperty
|
|
2770
|
+
* @category Events - Core
|
|
2771
|
+
* @since 1.6.0
|
|
2772
|
+
*
|
|
2773
|
+
* @example
|
|
2774
|
+
* JavaScript
|
|
2775
|
+
* ```js
|
|
2776
|
+
* const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
|
|
2777
|
+
* api.settingsUpdated.on(() => {
|
|
2778
|
+
* updateSettingsUI(api.settings);
|
|
2779
|
+
* });
|
|
2780
|
+
* ```
|
|
2781
|
+
*
|
|
2782
|
+
* @example
|
|
2783
|
+
* C#
|
|
2784
|
+
* ```cs
|
|
2785
|
+
* var api = new AlphaTabApi<MyControl>(...);
|
|
2786
|
+
* api.SettingsUpdated.On(() =>
|
|
2787
|
+
* {
|
|
2788
|
+
* UpdateSettingsUI(api.settings);
|
|
2789
|
+
* });
|
|
2790
|
+
* ```
|
|
2791
|
+
*
|
|
2792
|
+
* @example
|
|
2793
|
+
* Android
|
|
2794
|
+
* ```kotlin
|
|
2795
|
+
* val api = AlphaTabApi<MyControl>(...)
|
|
2796
|
+
* api.SettingsUpdated.on {
|
|
2797
|
+
* updateSettingsUI(api.settings)
|
|
2798
|
+
* }
|
|
2799
|
+
* ```
|
|
2800
|
+
*
|
|
2801
|
+
*/
|
|
2802
|
+
settingsUpdated: IEventEmitter;
|
|
2745
2803
|
private onSettingsUpdated;
|
|
2746
2804
|
/**
|
|
2747
2805
|
* Loads and lists the available output devices which can be used by the player.
|
|
@@ -13427,7 +13485,7 @@ declare class SyncPointData {
|
|
|
13427
13485
|
barOccurence: number;
|
|
13428
13486
|
/**
|
|
13429
13487
|
* The modified tempo at which the cursor should move (aka. the tempo played within the external audio track).
|
|
13430
|
-
* This information is used together with
|
|
13488
|
+
* This information is used together with normal tempo changes to calculate how much faster/slower the
|
|
13431
13489
|
* cursor playback is performed to align with the audio track.
|
|
13432
13490
|
*/
|
|
13433
13491
|
modifiedTempo: number;
|
|
@@ -13440,6 +13498,7 @@ declare class SyncPointData {
|
|
|
13440
13498
|
|
|
13441
13499
|
export declare namespace synth {
|
|
13442
13500
|
export {
|
|
13501
|
+
AlphaSynthBase,
|
|
13443
13502
|
AlphaSynth,
|
|
13444
13503
|
CircularSampleBuffer,
|
|
13445
13504
|
PlaybackRange,
|
|
@@ -13447,6 +13506,7 @@ export declare namespace synth {
|
|
|
13447
13506
|
ISynthOutputDevice,
|
|
13448
13507
|
IBackingTrackSynthOutput,
|
|
13449
13508
|
IAlphaSynth,
|
|
13509
|
+
BackingTrackSyncPoint,
|
|
13450
13510
|
PlayerState,
|
|
13451
13511
|
PlayerStateChangedEventArgs,
|
|
13452
13512
|
PlaybackRangeChangedEventArgs,
|