MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / addWhammyBarPoint

Method addWhammyBarPoint

packages/alphatab/src/model/Beat.ts:759–775  ·  view source on GitHub ↗
(point: BendPoint)

Source from the content-addressed store, hash-verified

757 public style?: BeatStyle;
758
759 public addWhammyBarPoint(point: BendPoint): void {
760 let points = this.whammyBarPoints;
761 if (points === null) {
762 points = [];
763 this.whammyBarPoints = points;
764 }
765 points.push(point);
766 if (!this.maxWhammyPoint || point.value > this.maxWhammyPoint.value) {
767 this.maxWhammyPoint = point;
768 }
769 if (!this.minWhammyPoint || point.value < this.minWhammyPoint.value) {
770 this.minWhammyPoint = point;
771 }
772 if (this.whammyBarType === WhammyType.None) {
773 this.whammyBarType = WhammyType.Custom;
774 }
775 }
776
777 public removeWhammyBarPoint(index: number): void {
778 // check index

Callers 6

_parseBeatMethod · 0.95
cloneMethod · 0.95
_parseBeatPropertiesMethod · 0.80
readTremoloBarEffectMethod · 0.80
applyBeatPropertyMethod · 0.80
setPropertyMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected