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

Properties

IsSoftAccent: boolean
boundingBox: BoundingBox
endMeasure: GraphicalMeasure
expression: AbstractExpression

Internal cache of read expression

isSplittedPart: boolean

True if expression is split over system borders

lines: GraphicalLine[] = []

Holds the line objects that can be drawn via implementation

notToBeRemoved: boolean

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

parentMeasure: SourceMeasure
parentStaffLine: StaffLine

EngravingRules for positioning

startMeasure: GraphicalMeasure

Accessors

  • get ContinuousDynamic(): ContinuousDynamicExpression
  • get IsSplittedPart(): boolean
  • set IsSplittedPart(value: boolean): void
  • get IsVerbal(): boolean
  • get NotToBeRemoved(): boolean
  • set NotToBeRemoved(value: boolean): void
  • get Placement(): PlacementEnum
  • get SourceExpression(): AbstractExpression

Methods

  • calcPsi(): void
  • cleanUp(): void
  • 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

    • wedgeOpeningLength: number = ...

      length of the opening

    • wedgeLineWidth: number = ...

      line width of the wedge

    Returns void

  • 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

    • wedgeOpeningLength: number = ...

      length of the opening

    • wedgeLineWidth: number = ...

      line width of the wedge

    Returns void

  • 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

    • wedgeMeasureEndOpeningLength: number = ...

      length of opening at measure end

    • wedgeLineWidth: number = ...

      line width of the wedge

    Returns void

  • 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

    • wedgeOpeningLength: number = ...

      length of the opening

    • wedgeMeasureEndOpeningLength: number = ...

      length of opening at measure end

    • wedgeLineWidth: number = ...

      line width of the wedge

    Returns void

  • createFirstHalfLines(startX: number, endX: number, y: number, wedgeOpeningLength?: number, wedgeMeasureEndOpeningLength?: number, wedgeLineWidth?: number): void
  • Wrapper for createFirstHalfCrescendoLines and createFirstHalfDiminuendoLines. Checks whether this is crescendo or diminuendo, helps avoid code duplication.

    Parameters

    • startX: number
    • endX: number
    • y: number
    • wedgeOpeningLength: number = ...
    • wedgeMeasureEndOpeningLength: number = ...
    • wedgeLineWidth: number = ...

    Returns void

  • createLines(startX: number, endX: number, y: number, wedgeOpeningLength?: number, wedgeLineWidth?: number): void
  • 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

    • wedgeMeasureBeginOpeningLength: number = ...

      length of opening at measure start

    • wedgeOpeningLength: number = ...

      length of the opening

    • wedgeLineWidth: number = ...

      line width of the wedge

    Returns void

  • 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

    • wedgeMeasureBeginOpeningLength: number = ...

      length of opening at measure start

    • wedgeLineWidth: number = ...

      line width of the wedge

    Returns void

  • createSecondHalfLines(startX: number, endX: number, y: number, wedgeMeasureBeginOpeningLength?: number, wedgeOpeningLength?: number, wedgeLineWidth?: number): void
  • Wrapper for createSecondHalfCrescendoLines and createSecondHalfDiminuendoLines, see createFirstHalfLines.

    Parameters

    • startX: number
    • endX: number
    • y: number
    • wedgeMeasureBeginOpeningLength: number = ...
    • wedgeOpeningLength: number = ...
    • wedgeLineWidth: number = ...

    Returns void

  • isInstanceOfClass(className: string): boolean
  • recalculateCrescendoLines(startX: number, endX: number, y: number): void
  • recalculateDiminuendoLines(startX: number, endX: number, yPosition: number): void
  • shiftYPosition(shift: number): void
  • squeeze(value: number): void
  • updateSkyBottomLine(): void

Generated using TypeDoc