@coderline/alphatab 1.6.0-alpha.1405 → 1.6.0-alpha.1409
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 +952 -737
- package/dist/alphaTab.d.ts +41 -17
- package/dist/alphaTab.js +952 -737
- 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
|
@@ -324,7 +324,6 @@ declare class AlphaSynthWebWorkerApi implements IAlphaSynth {
|
|
|
324
324
|
stop(): void;
|
|
325
325
|
playOneTimeMidiFile(midi: MidiFile): void;
|
|
326
326
|
loadSoundFont(data: Uint8Array, append: boolean): void;
|
|
327
|
-
loadSoundFontFromUrl(url: string, append: boolean, progress: (e: ProgressEventArgs) => void): void;
|
|
328
327
|
resetSoundFonts(): void;
|
|
329
328
|
loadMidiFile(midi: MidiFile): void;
|
|
330
329
|
applyTranspositionPitches(transpositionPitches: Map<number, number>): void;
|
|
@@ -471,6 +470,7 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
471
470
|
private _score;
|
|
472
471
|
private _tracks;
|
|
473
472
|
private _actualPlayerMode;
|
|
473
|
+
private _player;
|
|
474
474
|
/**
|
|
475
475
|
* The actual player mode which is currently active (e.g. allows determining whether a backing track or the synthesizer is active).
|
|
476
476
|
*/
|
|
@@ -611,6 +611,7 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
611
611
|
* @param settings The UI settings object to use for loading the settings.
|
|
612
612
|
*/
|
|
613
613
|
constructor(uiFacade: IUiFacade<TSettings>, settings: TSettings);
|
|
614
|
+
private setupPlayerWrapper;
|
|
614
615
|
/**
|
|
615
616
|
* Destroys the alphaTab control and restores the initial state of the UI.
|
|
616
617
|
* @remarks
|
|
@@ -1022,7 +1023,7 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
1022
1023
|
* setupPlayerEvents(api.player)
|
|
1023
1024
|
* ```
|
|
1024
1025
|
*/
|
|
1025
|
-
player: IAlphaSynth | null;
|
|
1026
|
+
get player(): IAlphaSynth | null;
|
|
1026
1027
|
/**
|
|
1027
1028
|
* Whether the player is ready for starting the playback.
|
|
1028
1029
|
* @remarks
|
|
@@ -1375,7 +1376,7 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
1375
1376
|
get isLooping(): boolean;
|
|
1376
1377
|
set isLooping(value: boolean);
|
|
1377
1378
|
private destroyPlayer;
|
|
1378
|
-
private
|
|
1379
|
+
private setupOrDestroyPlayer;
|
|
1379
1380
|
private loadMidiForScore;
|
|
1380
1381
|
/**
|
|
1381
1382
|
* Changes the volume of the given tracks.
|
|
@@ -1700,15 +1701,13 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
1700
1701
|
private _beatCursor;
|
|
1701
1702
|
private _selectionWrapper;
|
|
1702
1703
|
private _previousTick;
|
|
1703
|
-
private _playerState;
|
|
1704
1704
|
private _currentBeat;
|
|
1705
|
-
private
|
|
1705
|
+
private _currentBeatBounds;
|
|
1706
1706
|
private _previousStateForCursor;
|
|
1707
1707
|
private _previousCursorCache;
|
|
1708
1708
|
private _lastScroll;
|
|
1709
1709
|
private destroyCursors;
|
|
1710
1710
|
private updateCursors;
|
|
1711
|
-
private setupPlayerEvents;
|
|
1712
1711
|
/**
|
|
1713
1712
|
* updates the cursors to highlight the beat at the specified tick position
|
|
1714
1713
|
* @param tick
|
|
@@ -2350,7 +2349,7 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
2350
2349
|
* }
|
|
2351
2350
|
* ```
|
|
2352
2351
|
*/
|
|
2353
|
-
playerReady: IEventEmitter;
|
|
2352
|
+
get playerReady(): IEventEmitter;
|
|
2354
2353
|
private onPlayerReady;
|
|
2355
2354
|
/**
|
|
2356
2355
|
* This event is fired when the playback of the whole song finished.
|
|
@@ -2402,7 +2401,7 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
2402
2401
|
* ```
|
|
2403
2402
|
*
|
|
2404
2403
|
*/
|
|
2405
|
-
playerFinished: IEventEmitter;
|
|
2404
|
+
get playerFinished(): IEventEmitter;
|
|
2406
2405
|
private onPlayerFinished;
|
|
2407
2406
|
/**
|
|
2408
2407
|
* This event is fired when the SoundFont needed for playback was loaded.
|
|
@@ -2440,7 +2439,7 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
2440
2439
|
* ```
|
|
2441
2440
|
*
|
|
2442
2441
|
*/
|
|
2443
|
-
soundFontLoaded: IEventEmitter;
|
|
2442
|
+
get soundFontLoaded(): IEventEmitter;
|
|
2444
2443
|
private onSoundFontLoaded;
|
|
2445
2444
|
/**
|
|
2446
2445
|
* This event is fired when a Midi file is being loaded.
|
|
@@ -2567,7 +2566,7 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
2567
2566
|
* ```
|
|
2568
2567
|
*
|
|
2569
2568
|
*/
|
|
2570
|
-
playerStateChanged: IEventEmitterOfT<PlayerStateChangedEventArgs>;
|
|
2569
|
+
get playerStateChanged(): IEventEmitterOfT<PlayerStateChangedEventArgs>;
|
|
2571
2570
|
private onPlayerStateChanged;
|
|
2572
2571
|
/**
|
|
2573
2572
|
* This event is fired when the current playback position of the song changed.
|
|
@@ -2605,7 +2604,7 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
2605
2604
|
* ```
|
|
2606
2605
|
*
|
|
2607
2606
|
*/
|
|
2608
|
-
playerPositionChanged: IEventEmitterOfT<PositionChangedEventArgs>;
|
|
2607
|
+
get playerPositionChanged(): IEventEmitterOfT<PositionChangedEventArgs>;
|
|
2609
2608
|
private onPlayerPositionChanged;
|
|
2610
2609
|
/**
|
|
2611
2610
|
* This event is fired when the synthesizer played certain midi events.
|
|
@@ -2686,7 +2685,7 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
2686
2685
|
* @see {@link SystemCommonEvent}
|
|
2687
2686
|
* @see {@link SystemExclusiveEvent}
|
|
2688
2687
|
*/
|
|
2689
|
-
midiEventsPlayed: IEventEmitterOfT<MidiEventsPlayedEventArgs>;
|
|
2688
|
+
get midiEventsPlayed(): IEventEmitterOfT<MidiEventsPlayedEventArgs>;
|
|
2690
2689
|
private onMidiEventsPlayed;
|
|
2691
2690
|
/**
|
|
2692
2691
|
* This event is fired when the playback range changed.
|
|
@@ -2740,7 +2739,7 @@ export declare class AlphaTabApiBase<TSettings> {
|
|
|
2740
2739
|
* ```
|
|
2741
2740
|
*
|
|
2742
2741
|
*/
|
|
2743
|
-
playbackRangeChanged: IEventEmitterOfT<PlaybackRangeChangedEventArgs>;
|
|
2742
|
+
get playbackRangeChanged(): IEventEmitterOfT<PlaybackRangeChangedEventArgs>;
|
|
2744
2743
|
private onPlaybackRangeChanged;
|
|
2745
2744
|
/* Excluded from this release type: settingsUpdated */
|
|
2746
2745
|
private onSettingsUpdated;
|
|
@@ -7295,16 +7294,42 @@ declare interface IContainer {
|
|
|
7295
7294
|
mouseUp: IEventEmitterOfT<IMouseEventArgs>;
|
|
7296
7295
|
}
|
|
7297
7296
|
|
|
7297
|
+
/**
|
|
7298
|
+
* An emitter for an event without any value passed to the listeners.
|
|
7299
|
+
*/
|
|
7298
7300
|
export declare interface IEventEmitter {
|
|
7299
|
-
|
|
7301
|
+
/**
|
|
7302
|
+
* Registers to the event with the given handler
|
|
7303
|
+
* @param value The function to call when the event occurs.
|
|
7304
|
+
* @returns A function which can be called to unregister the registered handler.
|
|
7305
|
+
* This is usedful if the original function passed to this is not stored somewhere but
|
|
7306
|
+
* unregistering of the event needs to be done.
|
|
7307
|
+
*/
|
|
7308
|
+
on(value: () => void): () => void;
|
|
7309
|
+
/**
|
|
7310
|
+
* Unregisters the given handler from this event.
|
|
7311
|
+
* @param value The value originally passed into {@link on}, NOT the function returned by it.
|
|
7312
|
+
*/
|
|
7300
7313
|
off(value: () => void): void;
|
|
7301
7314
|
}
|
|
7302
7315
|
|
|
7303
7316
|
/**
|
|
7317
|
+
* An emitter for an event with a single parameter passed to the listeners.
|
|
7304
7318
|
* @partial
|
|
7305
7319
|
*/
|
|
7306
7320
|
export declare interface IEventEmitterOfT<T> {
|
|
7307
|
-
|
|
7321
|
+
/**
|
|
7322
|
+
* Registers to the event with the given handler
|
|
7323
|
+
* @param value The function to call when the event occurs.
|
|
7324
|
+
* @returns A function which can be called to unregister the registered handler.
|
|
7325
|
+
* This is usedful if the original function passed to this is not stored somewhere but
|
|
7326
|
+
* unregistering of the event needs to be done.
|
|
7327
|
+
*/
|
|
7328
|
+
on(value: (arg: T) => void): () => void;
|
|
7329
|
+
/**
|
|
7330
|
+
* Unregisters the given handler from this event.
|
|
7331
|
+
* @param value The value originally passed into {@link on}, NOT the function returned by it.
|
|
7332
|
+
*/
|
|
7308
7333
|
off(value: (arg: T) => void): void;
|
|
7309
7334
|
}
|
|
7310
7335
|
|
|
@@ -9151,13 +9176,12 @@ declare class MidiFileSequencer {
|
|
|
9151
9176
|
fillMidiEventQueueToEndTime(endTime: number): boolean;
|
|
9152
9177
|
private fillMidiEventQueueLimited;
|
|
9153
9178
|
mainTickPositionToTimePosition(tickPosition: number): number;
|
|
9154
|
-
mainTimePositionToTickPosition(timePosition: number): number;
|
|
9155
9179
|
mainUpdateSyncPoints(syncPoints: BackingTrackSyncPoint[]): void;
|
|
9156
9180
|
currentTimePositionToTickPosition(timePosition: number): number;
|
|
9181
|
+
private updateCurrentTempo;
|
|
9157
9182
|
mainTimePositionFromBackingTrack(timePosition: number, backingTrackLength: number): number;
|
|
9158
9183
|
mainTimePositionToBackingTrack(timePosition: number, backingTrackLength: number): number;
|
|
9159
9184
|
private tickPositionToTimePositionWithSpeed;
|
|
9160
|
-
private timePositionToTickPositionWithSpeed;
|
|
9161
9185
|
private get internalEndTime();
|
|
9162
9186
|
get isFinished(): boolean;
|
|
9163
9187
|
stop(): void;
|