@coderline/alphatab 1.8.0-alpha.1660 → 1.8.0-alpha.1668

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.
@@ -4934,11 +4934,24 @@ declare class Beat {
4934
4934
  * Gets or sets the pickstroke applied on this beat.
4935
4935
  */
4936
4936
  pickStroke: PickStroke;
4937
+ /**
4938
+ * Whether this beat has a tremolo picking effect.
4939
+ */
4937
4940
  get isTremolo(): boolean;
4938
4941
  /**
4939
- * Gets or sets the speed of the tremolo effect.
4942
+ * The tremolo picking effect.
4943
+ */
4944
+ tremoloPicking?: TremoloPickingEffect;
4945
+ /**
4946
+ * The speed of the tremolo.
4947
+ * @deprecated Set {@link tremoloPicking} instead.
4940
4948
  */
4941
- tremoloSpeed: Duration | null;
4949
+ get tremoloSpeed(): Duration | null;
4950
+ /**
4951
+ * The speed of the tremolo.
4952
+ * @deprecated Set {@link tremoloPicking} instead.
4953
+ */
4954
+ set tremoloSpeed(value: Duration | null);
4942
4955
  /**
4943
4956
  * Gets or sets whether a crescendo/decrescendo is applied on this beat.
4944
4957
  */
@@ -7561,6 +7574,17 @@ export declare class EngravingSettings {
7561
7574
  * in case of multi-voice note head overlaps.
7562
7575
  */
7563
7576
  multiVoiceDisplacedNoteHeadSpacing: number;
7577
+ /**
7578
+ * Calculates the stem height for a note of the given duration.
7579
+ * @param duration The duration to calculate the height respecting flag sizes.
7580
+ * @param hasFlag True if we need to respect flags, false if we have beams.
7581
+ * @returns The total stem height
7582
+ */
7583
+ getStemLength(duration: Duration, hasFlag: boolean): number;
7584
+ /**
7585
+ * The space needed by flags on the stem-side from top to bottom to place.
7586
+ */
7587
+ stemFlagHeight: Map<Duration, number>;
7564
7588
  static readonly bravuraMetadata: SmuflMetadata;
7565
7589
  }
7566
7590
 
@@ -7958,6 +7982,10 @@ declare interface EngravingSettingsJson {
7958
7982
  * in case of multi-voice note head overlaps.
7959
7983
  */
7960
7984
  multiVoiceDisplacedNoteHeadSpacing?: number;
7985
+ /**
7986
+ * The space needed by flags on the stem-side from top to bottom to place.
7987
+ */
7988
+ stemFlagHeight?: Map<Duration | keyof typeof Duration | Lowercase<keyof typeof Duration>, number>;
7961
7989
  }
7962
7990
 
7963
7991
  /**
@@ -8959,7 +8987,7 @@ declare interface IAlphaTexImporterState {
8959
8987
  currentTupletDenominator: number;
8960
8988
  readonly syncPoints: FlatSyncPoint[];
8961
8989
  readonly slurs: Map<string, Note>;
8962
- readonly percussionArticulationNames: Map<string, number>;
8990
+ readonly percussionArticulationNames: Map<string, string>;
8963
8991
  readonly lyrics: Map<number, Lyrics[]>;
8964
8992
  readonly staffHasExplicitDisplayTransposition: Set<Staff>;
8965
8993
  readonly staffHasExplicitTuning: Set<Staff>;
@@ -9541,6 +9569,16 @@ declare interface ImporterSettingsJson {
9541
9569
  * @public
9542
9570
  */
9543
9571
  declare class InstrumentArticulation {
9572
+ /**
9573
+ * An internal ID to identify this articulation for purposes like
9574
+ * mapping during exports.The exact meaning of the ID is not defined and dependes on the
9575
+ * importer source.
9576
+ */
9577
+ id: number;
9578
+ /**
9579
+ * A unique id for this articulation.
9580
+ */
9581
+ get uniqueId(): string;
9544
9582
  /**
9545
9583
  * Gets or sets the type of the element for which this articulation is for.
9546
9584
  */
@@ -9578,7 +9616,8 @@ declare class InstrumentArticulation {
9578
9616
  * Gets or sets which midi key to use when playing the note.
9579
9617
  */
9580
9618
  outputMidiNumber: number;
9581
- constructor(elementType?: string, staffLine?: number, outputMidiNumber?: number, noteHeadDefault?: MusicFontSymbol, noteHeadHalf?: MusicFontSymbol, noteHeadWhole?: MusicFontSymbol, techniqueSymbol?: MusicFontSymbol, techniqueSymbolPlacement?: TechniqueSymbolPlacement);
9619
+ constructor(elementType?: string, staffLine?: number, outputMidiNumber?: number, noteHeadDefault?: MusicFontSymbol, noteHeadHalf?: MusicFontSymbol, noteHeadWhole?: MusicFontSymbol, techniqueSymbol?: MusicFontSymbol, techniqueSymbolPlacement?: TechniqueSymbolPlacement, id?: number);
9620
+
9582
9621
  getSymbol(duration: Duration): MusicFontSymbol;
9583
9622
  }
9584
9623
 
@@ -11409,6 +11448,8 @@ export declare namespace model {
11409
11448
  BeatBeamingMode,
11410
11449
  BeatSubElement,
11411
11450
  BeatStyle,
11451
+ TremoloPickingEffect,
11452
+ TremoloPickingStyle,
11412
11453
  BendPoint,
11413
11454
  BendStyle,
11414
11455
  BendType,
@@ -11620,9 +11661,12 @@ declare enum MusicFontSymbol {
11620
11661
  TextTupletBracketStartLongStem = 57857,
11621
11662
  TextTuplet3LongStem = 57858,
11622
11663
  TextTupletBracketEndLongStem = 57859,
11623
- Tremolo3 = 57890,
11624
- Tremolo2 = 57889,
11625
11664
  Tremolo1 = 57888,
11665
+ Tremolo2 = 57889,
11666
+ Tremolo3 = 57890,
11667
+ Tremolo4 = 57891,
11668
+ Tremolo5 = 57892,
11669
+ BuzzRoll = 57898,
11626
11670
  Flag8thUp = 57920,
11627
11671
  Flag8thDown = 57921,
11628
11672
  Flag16thUp = 57922,
@@ -15812,6 +15856,53 @@ declare enum TrackSubElement {
15812
15856
  StringTuning = 3
15813
15857
  }
15814
15858
 
15859
+ /**
15860
+ * Describes a tremolo picking effect.
15861
+ * @json
15862
+ * @json_strict
15863
+ * @cloneable
15864
+ * @public
15865
+ */
15866
+ declare class TremoloPickingEffect {
15867
+ /**
15868
+ * The minimum number of marks for the tremolo picking effect to be valid.
15869
+ */
15870
+ static readonly minMarks = 0;
15871
+ /**
15872
+ * The max number of marks for the tremolo picking effect to be valid.
15873
+ */
15874
+ static readonly maxMarks = 5;
15875
+ /**
15876
+ * The number of marks for the tremolo.
15877
+ * A mark is equal to a single bar shown for a default tremolos.
15878
+ */
15879
+ marks: number;
15880
+ /**
15881
+ * The style of the tremolo picking.
15882
+ */
15883
+ style: TremoloPickingStyle;
15884
+ /**
15885
+ * The number of marks define the note value of the note repetition.
15886
+ * e.g. a single mark is an 8th note.
15887
+ */
15888
+ get duration(): Duration;
15889
+ }
15890
+
15891
+ /**
15892
+ * The style of tremolo affecting mainly the display of the effect.
15893
+ * @public
15894
+ */
15895
+ declare enum TremoloPickingStyle {
15896
+ /**
15897
+ * A classic tremolo expressed by diagonal bars on the stem.
15898
+ */
15899
+ Default = 0,
15900
+ /**
15901
+ * A buzz roll tremolo expressed by a 'z' shaped symbol.
15902
+ */
15903
+ BuzzRoll = 1
15904
+ }
15905
+
15815
15906
  /**
15816
15907
  * This public enumeration lists all feels of triplets.
15817
15908
  * @public