(point: BendPoint)
| 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 |
no test coverage detected