Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GraphicalSlur

Hierarchy

Index

Constructors

constructor

Properties

bezierEndControlPt

bezierEndControlPt: PointF2D

bezierEndPt

bezierEndPt: PointF2D

bezierStartControlPt

bezierStartControlPt: PointF2D

bezierStartPt

bezierStartPt: PointF2D

graceEnd

graceEnd: boolean

graceStart

graceStart: boolean

placement

placement: PlacementEnum

slur

slur: Slur

staffEntries

staffEntries: GraphicalStaffEntry[] = []

Static Private d

d: number = 0.2

Static Private degreesToRadiansFactor

degreesToRadiansFactor: number = Math.PI / 180

Static Private k

k: number = 0.9

Methods

Private calculateAngles

  • calculateAngles(leftAngle: number, rightAngle: number, leftLineSlope: number, rightLineSlope: number, maxAngle: number): void
  • This method calculates the angles for the Curve's Tangent Lines.

    Parameters

    • leftAngle: number
    • rightAngle: number
    • leftLineSlope: number
    • rightLineSlope: number
    • maxAngle: number

    Returns void

Private calculateBottomPoints

Private calculateControlPoints

  • calculateControlPoints(endX: number, leftAngle: number, rightAngle: number, points: PointF2D[]): { leftControlPoint: PointF2D; rightControlPoint: PointF2D }

calculateCurve

calculateCurvePointAtIndex

  • calculateCurvePointAtIndex(relativePosition: number): PointF2D

Private calculateHeightWidthRatio

  • calculateHeightWidthRatio(endX: number, points: PointF2D[]): number
  • This method calculates the HeightWidthRatio between the MaxYpoint (from the points between StartPoint and EndPoint) and the X-distance from StartPoint to EndPoint.

    Parameters

    Returns number

Private calculateMaxLeftSlope

Private calculateMaxRightSlope

Private calculatePlacement

Private calculateStartAndEnd

Private calculateTopPoints

Private calculateTranslatedAndRotatedPointListAbove

  • calculateTranslatedAndRotatedPointListAbove(points: PointF2D[], startX: number, startY: number, rotationMatrix: Matrix2D): PointF2D[]

Private calculateTranslatedAndRotatedPointListBelow

  • calculateTranslatedAndRotatedPointListBelow(points: PointF2D[], startX: number, startY: number, rotationMatrix: Matrix2D): PointF2D[]

Private getPointListMaxY

  • getPointListMaxY(points: PointF2D[]): number

Static Compare

Generated using TypeDoc