Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GraphicalContinuousDynamicExpression

This class prepares the graphical elements for a continuous expression. It calculates the wedges and wrappings if they are split over system breaks.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected boundingBox

boundingBox: BoundingBox

Private endMeasure

endMeasure: GraphicalMeasure

Protected expression

expression: AbstractExpression

Internal cache of read expression

Private isSplittedPart

isSplittedPart: boolean

True if expression is split over system borders

Protected label

Private lines

lines: GraphicalLine[] = []

Holds the line objects that can be drawn via implementation

Private notToBeRemoved

notToBeRemoved: boolean

True if this expression should not be removed if re-rendered

Protected parentStaffLine

parentStaffLine: StaffLine

Protected rules

rules: EngravingRules = EngravingRules.Rules

EngravingRules for positioning

Private startMeasure

startMeasure: GraphicalMeasure

Accessors

ContinuousDynamic

EndMeasure

EndStaffLine

IsSplittedPart

  • get IsSplittedPart(): boolean
  • set IsSplittedPart(value: boolean): void

IsVerbal

  • get IsVerbal(): boolean

Label

Lines

NotToBeRemoved

  • get NotToBeRemoved(): boolean
  • set NotToBeRemoved(value: boolean): void

ParentStaffLine

Placement

PositionAndShape

SourceExpression

StartMeasure

Methods

Private addDoubleLines

Private addWedgeLines

calcPsi

  • calcPsi(): void

cleanUp

  • cleanUp(): void

createCrescendoLines

  • createCrescendoLines(startX: number, endX: number, y: number, wedgeOpeningLength?: number, wedgeLineWidth?: number): void
  • Calculate crescendo lines for (full).

    Parameters

    • startX: number

      left most starting point

    • endX: number

      right mist ending point

    • y: number

      y placement

    • Default value wedgeOpeningLength: number = this.rules.WedgeOpeningLength

      length of the opening

    • Default value wedgeLineWidth: number = this.rules.WedgeLineWidth

      line width of the wedge

    Returns void

createDiminuendoLines

  • createDiminuendoLines(startX: number, endX: number, y: number, wedgeOpeningLength?: number, wedgeLineWidth?: number): void
  • Calculate diminuendo lines for system break (full).

    Parameters

    • startX: number

      left most starting point

    • endX: number

      right mist ending point

    • y: number

      y placement

    • Default value wedgeOpeningLength: number = this.rules.WedgeOpeningLength

      length of the opening

    • Default value wedgeLineWidth: number = this.rules.WedgeLineWidth

      line width of the wedge

    Returns void

createFirstHalfCrescendoLines

  • createFirstHalfCrescendoLines(startX: number, endX: number, y: number, wedgeMeasureEndOpeningLength?: number, wedgeLineWidth?: number): void
  • Calculate crescendo lines for system break (first part).

    Parameters

    • startX: number

      left most starting point

    • endX: number

      right mist ending point

    • y: number

      y placement

    • Default value wedgeMeasureEndOpeningLength: number = this.rules.WedgeMeasureEndOpeningLength

      length of opening at measure end

    • Default value wedgeLineWidth: number = this.rules.WedgeLineWidth

      line width of the wedge

    Returns void

createFirstHalfDiminuendoLines

  • createFirstHalfDiminuendoLines(startX: number, endX: number, y: number, wedgeOpeningLength?: number, wedgeMeasureEndOpeningLength?: number, wedgeLineWidth?: number): void
  • Calculate diminuendo lines for system break (first part).

    Parameters

    • startX: number

      left most starting point

    • endX: number

      right mist ending point

    • y: number

      y placement

    • Default value wedgeOpeningLength: number = this.rules.WedgeOpeningLength

      length of the opening

    • Default value wedgeMeasureEndOpeningLength: number = this.rules.WedgeMeasureEndOpeningLength

      length of opening at measure end

    • Default value wedgeLineWidth: number = this.rules.WedgeLineWidth

      line width of the wedge

    Returns void

createSecondHalfCrescendoLines

  • createSecondHalfCrescendoLines(startX: number, endX: number, y: number, wedgeMeasureBeginOpeningLength?: number, wedgeOpeningLength?: number, wedgeLineWidth?: number): void
  • Calculate crescendo lines for system break (second part).

    Parameters

    • startX: number

      left most starting point

    • endX: number

      right mist ending point

    • y: number

      y placement

    • Default value wedgeMeasureBeginOpeningLength: number = this.rules.WedgeMeasureBeginOpeningLength

      length of opening at measure start

    • Default value wedgeOpeningLength: number = this.rules.WedgeOpeningLength

      length of the opening

    • Default value wedgeLineWidth: number = this.rules.WedgeLineWidth

      line width of the wedge

    Returns void

createSecondHalfDiminuendoLines

  • createSecondHalfDiminuendoLines(startX: number, endX: number, y: number, wedgeMeasureBeginOpeningLength?: number, wedgeLineWidth?: number): void
  • Calculate diminuendo lines for system break (second part).

    Parameters

    • startX: number

      left most starting point

    • endX: number

      right mist ending point

    • y: number

      y placement

    • Default value wedgeMeasureBeginOpeningLength: number = this.rules.WedgeMeasureBeginOpeningLength

      length of opening at measure start

    • Default value wedgeLineWidth: number = this.rules.WedgeLineWidth

      line width of the wedge

    Returns void

recalculateCrescendoLines

  • recalculateCrescendoLines(startX: number, endX: number, y: number): void

recalculateDiminuendoLines

  • recalculateDiminuendoLines(startX: number, endX: number, yPosition: number): void

shiftYPosition

  • shiftYPosition(shift: number): void

squeeze

  • squeeze(value: number): void

updateSkyBottomLine

  • updateSkyBottomLine(): void

Generated using TypeDoc