@coderline/alphatab 1.6.0-alpha.1397 → 1.6.0-alpha.1401

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * alphaTab v1.6.0-alpha.1397 (develop, build 1397)
2
+ * alphaTab v1.6.0-alpha.1401 (develop, build 1401)
3
3
  *
4
4
  * Copyright © 2025, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -27952,40 +27952,53 @@ class AlphaSynth {
27952
27952
  else {
27953
27953
  endTick = this._sequencer.currentEndTick;
27954
27954
  }
27955
- if (this._tickPosition >= endTick && this._notPlayedSamples <= 0) {
27956
- this._notPlayedSamples = 0;
27957
- if (this._sequencer.isPlayingCountIn) {
27958
- Logger.debug('AlphaSynth', 'Finished playback (count-in)');
27959
- this._sequencer.resetCountIn();
27960
- this.timePosition = this._sequencer.currentTime;
27961
- this.playInternal();
27962
- this.output.resetSamples();
27963
- }
27964
- else if (this._sequencer.isPlayingOneTimeMidi) {
27965
- Logger.debug('AlphaSynth', 'Finished playback (one time)');
27966
- this.output.resetSamples();
27967
- this.state = PlayerState.Paused;
27968
- this.stopOneTimeMidi();
27969
- }
27970
- else if (this.isLooping) {
27971
- Logger.debug('AlphaSynth', 'Finished playback (main looping)');
27972
- this.finished.trigger();
27973
- this.tickPosition = startTick;
27974
- this._synthStopping = false;
27955
+ if (this._tickPosition >= endTick) {
27956
+ // fully done with playback of remaining samples?
27957
+ if (this._notPlayedSamples <= 0) {
27958
+ this._notPlayedSamples = 0;
27959
+ if (this._sequencer.isPlayingCountIn) {
27960
+ Logger.debug('AlphaSynth', 'Finished playback (count-in)');
27961
+ this._sequencer.resetCountIn();
27962
+ this.timePosition = this._sequencer.currentTime;
27963
+ this.playInternal();
27964
+ this.output.resetSamples();
27965
+ }
27966
+ else if (this._sequencer.isPlayingOneTimeMidi) {
27967
+ Logger.debug('AlphaSynth', 'Finished playback (one time)');
27968
+ this.output.resetSamples();
27969
+ this.state = PlayerState.Paused;
27970
+ this.stopOneTimeMidi();
27971
+ }
27972
+ else if (this.isLooping) {
27973
+ Logger.debug('AlphaSynth', 'Finished playback (main looping)');
27974
+ this.finished.trigger();
27975
+ this.tickPosition = startTick;
27976
+ this._synthStopping = false;
27977
+ }
27978
+ else if (this._synthesizer.activeVoiceCount > 0) {
27979
+ // smooth stop
27980
+ if (!this._synthStopping) {
27981
+ Logger.debug('AlphaSynth', 'Signaling synth to stop all voices (all samples played)');
27982
+ this._synthesizer.noteOffAll(true);
27983
+ this._synthStopping = true;
27984
+ }
27985
+ }
27986
+ else {
27987
+ this._synthStopping = false;
27988
+ Logger.debug('AlphaSynth', 'Finished playback (main)');
27989
+ this.finished.trigger();
27990
+ this.stop();
27991
+ }
27975
27992
  }
27976
- else if (this._synthesizer.activeVoiceCount > 0) {
27977
- // smooth stop
27993
+ else {
27994
+ // the output still has to play some samples, signal the synth to stop
27995
+ // to eventually bring the voices down to 0 and stop playing
27978
27996
  if (!this._synthStopping) {
27997
+ Logger.debug('AlphaSynth', 'Signaling synth to stop all voices (not all samples played)');
27979
27998
  this._synthesizer.noteOffAll(true);
27980
27999
  this._synthStopping = true;
27981
28000
  }
27982
28001
  }
27983
- else {
27984
- this._synthStopping = false;
27985
- Logger.debug('AlphaSynth', 'Finished playback (main)');
27986
- this.finished.trigger();
27987
- this.stop();
27988
- }
27989
28002
  }
27990
28003
  }
27991
28004
  stopOneTimeMidi() {
@@ -59293,9 +59306,9 @@ class VersionInfo {
59293
59306
  print(`build date: ${VersionInfo.date}`);
59294
59307
  }
59295
59308
  }
59296
- VersionInfo.version = '1.6.0-alpha.1397';
59297
- VersionInfo.date = '2025-05-04T17:39:41.423Z';
59298
- VersionInfo.commit = 'bb8f811c764519039ff04a4150baf68f52bc680d';
59309
+ VersionInfo.version = '1.6.0-alpha.1401';
59310
+ VersionInfo.date = '2025-05-07T12:40:48.955Z';
59311
+ VersionInfo.commit = 'e58a9704e560b3344b8fe39a2b2f46a2ee3bb5b1';
59299
59312
 
59300
59313
  /**
59301
59314
  * A factory for custom layout engines.
package/dist/alphaTab.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * alphaTab v1.6.0-alpha.1397 (develop, build 1397)
2
+ * alphaTab v1.6.0-alpha.1401 (develop, build 1401)
3
3
  *
4
4
  * Copyright © 2025, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -27958,40 +27958,53 @@
27958
27958
  else {
27959
27959
  endTick = this._sequencer.currentEndTick;
27960
27960
  }
27961
- if (this._tickPosition >= endTick && this._notPlayedSamples <= 0) {
27962
- this._notPlayedSamples = 0;
27963
- if (this._sequencer.isPlayingCountIn) {
27964
- Logger.debug('AlphaSynth', 'Finished playback (count-in)');
27965
- this._sequencer.resetCountIn();
27966
- this.timePosition = this._sequencer.currentTime;
27967
- this.playInternal();
27968
- this.output.resetSamples();
27969
- }
27970
- else if (this._sequencer.isPlayingOneTimeMidi) {
27971
- Logger.debug('AlphaSynth', 'Finished playback (one time)');
27972
- this.output.resetSamples();
27973
- this.state = PlayerState.Paused;
27974
- this.stopOneTimeMidi();
27975
- }
27976
- else if (this.isLooping) {
27977
- Logger.debug('AlphaSynth', 'Finished playback (main looping)');
27978
- this.finished.trigger();
27979
- this.tickPosition = startTick;
27980
- this._synthStopping = false;
27961
+ if (this._tickPosition >= endTick) {
27962
+ // fully done with playback of remaining samples?
27963
+ if (this._notPlayedSamples <= 0) {
27964
+ this._notPlayedSamples = 0;
27965
+ if (this._sequencer.isPlayingCountIn) {
27966
+ Logger.debug('AlphaSynth', 'Finished playback (count-in)');
27967
+ this._sequencer.resetCountIn();
27968
+ this.timePosition = this._sequencer.currentTime;
27969
+ this.playInternal();
27970
+ this.output.resetSamples();
27971
+ }
27972
+ else if (this._sequencer.isPlayingOneTimeMidi) {
27973
+ Logger.debug('AlphaSynth', 'Finished playback (one time)');
27974
+ this.output.resetSamples();
27975
+ this.state = PlayerState.Paused;
27976
+ this.stopOneTimeMidi();
27977
+ }
27978
+ else if (this.isLooping) {
27979
+ Logger.debug('AlphaSynth', 'Finished playback (main looping)');
27980
+ this.finished.trigger();
27981
+ this.tickPosition = startTick;
27982
+ this._synthStopping = false;
27983
+ }
27984
+ else if (this._synthesizer.activeVoiceCount > 0) {
27985
+ // smooth stop
27986
+ if (!this._synthStopping) {
27987
+ Logger.debug('AlphaSynth', 'Signaling synth to stop all voices (all samples played)');
27988
+ this._synthesizer.noteOffAll(true);
27989
+ this._synthStopping = true;
27990
+ }
27991
+ }
27992
+ else {
27993
+ this._synthStopping = false;
27994
+ Logger.debug('AlphaSynth', 'Finished playback (main)');
27995
+ this.finished.trigger();
27996
+ this.stop();
27997
+ }
27981
27998
  }
27982
- else if (this._synthesizer.activeVoiceCount > 0) {
27983
- // smooth stop
27999
+ else {
28000
+ // the output still has to play some samples, signal the synth to stop
28001
+ // to eventually bring the voices down to 0 and stop playing
27984
28002
  if (!this._synthStopping) {
28003
+ Logger.debug('AlphaSynth', 'Signaling synth to stop all voices (not all samples played)');
27985
28004
  this._synthesizer.noteOffAll(true);
27986
28005
  this._synthStopping = true;
27987
28006
  }
27988
28007
  }
27989
- else {
27990
- this._synthStopping = false;
27991
- Logger.debug('AlphaSynth', 'Finished playback (main)');
27992
- this.finished.trigger();
27993
- this.stop();
27994
- }
27995
28008
  }
27996
28009
  }
27997
28010
  stopOneTimeMidi() {
@@ -59299,9 +59312,9 @@
59299
59312
  print(`build date: ${VersionInfo.date}`);
59300
59313
  }
59301
59314
  }
59302
- VersionInfo.version = '1.6.0-alpha.1397';
59303
- VersionInfo.date = '2025-05-04T17:39:41.423Z';
59304
- VersionInfo.commit = 'bb8f811c764519039ff04a4150baf68f52bc680d';
59315
+ VersionInfo.version = '1.6.0-alpha.1401';
59316
+ VersionInfo.date = '2025-05-07T12:40:48.955Z';
59317
+ VersionInfo.commit = 'e58a9704e560b3344b8fe39a2b2f46a2ee3bb5b1';
59305
59318
 
59306
59319
  /**
59307
59320
  * A factory for custom layout engines.