@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.
@@ -5517,6 +5517,7 @@ declare class MidiFileGenerator {
5517
5517
  private static getDynamicValue;
5518
5518
  private generateFadeIn;
5519
5519
  private generateVibrato;
5520
+ vibratoResolution: number;
5520
5521
  private generateVibratorWithParams;
5521
5522
  /**
5522
5523
  * Maximum semitones that are supported in bends in one direction (up or down)
package/dist/alphaTab.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * alphaTab v1.3.0-alpha.418 (develop, build 418)
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
  *
@@ -23004,6 +23004,7 @@
23004
23004
  */
23005
23005
  this.tickLookup = new MidiTickLookup();
23006
23006
  this._currentTripletFeel = null;
23007
+ this.vibratoResolution = 16;
23007
23008
  this._score = score;
23008
23009
  this._settings = !settings ? new Settings() : settings;
23009
23010
  this._currentTempo = this._score.tempo;
@@ -23342,7 +23343,7 @@
23342
23343
  else if (note.slideInType !== SlideInType.None || note.slideOutType !== SlideOutType.None) {
23343
23344
  this.generateSlide(note, noteStart, noteDuration, noteKey, dynamicValue, channel);
23344
23345
  }
23345
- else if (note.vibrato !== VibratoType.None) {
23346
+ else if (note.vibrato !== VibratoType.None || (note.isTieDestination && note.tieOrigin.vibrato !== VibratoType.None)) {
23346
23347
  this.generateVibrato(note, noteStart, noteDuration, noteKey, channel);
23347
23348
  }
23348
23349
  // for tied notes, and target notes of legato slides we do not pick the note
@@ -23488,7 +23489,9 @@
23488
23489
  generateVibrato(note, noteStart, noteDuration, noteKey, channel) {
23489
23490
  let phaseLength = 0;
23490
23491
  let bendAmplitude = 0;
23491
- switch (note.vibrato) {
23492
+ const vibratoType = note.vibrato !== VibratoType.None ? note.vibrato : (note.isTieDestination ? note.tieOrigin.vibrato :
23493
+ VibratoType.Slight /* should never happen unless called wrongly */);
23494
+ switch (vibratoType) {
23492
23495
  case VibratoType.Slight:
23493
23496
  phaseLength = this._settings.player.vibrato.noteSlightLength;
23494
23497
  bendAmplitude = this._settings.player.vibrato.noteSlightAmplitude;
@@ -23506,7 +23509,7 @@
23506
23509
  });
23507
23510
  }
23508
23511
  generateVibratorWithParams(noteStart, noteDuration, phaseLength, bendAmplitude, addBend) {
23509
- const resolution = 16;
23512
+ const resolution = this.vibratoResolution;
23510
23513
  const phaseHalf = (phaseLength / 2) | 0;
23511
23514
  // 1st Phase stays at bend 0,
23512
23515
  // then we have a sine wave with the given amplitude and phase length
@@ -41384,8 +41387,8 @@
41384
41387
  // </auto-generated>
41385
41388
  class VersionInfo {
41386
41389
  }
41387
- VersionInfo.version = '1.3.0-alpha.418';
41388
- VersionInfo.date = '2022-10-11T00:58:31.859Z';
41390
+ VersionInfo.version = '1.3.0-alpha.422';
41391
+ VersionInfo.date = '2022-10-15T01:02:48.729Z';
41389
41392
 
41390
41393
  var index$5 = /*#__PURE__*/Object.freeze({
41391
41394
  __proto__: null,