Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VexFlowMusicSheetDrawer

Hierarchy

Index

Constructors

Properties

backends: VexFlowBackend[] = []
bottomLineVisible: boolean = false
drawableBoundingBoxElement: string = "None"
drawingParameters: DrawingParameters
graphicalMusicSheet: GraphicalMusicSheet
midiPlaybackAvailable: boolean
pageIdx: number = 0
skyLineVisible: boolean = false
splitScreenLineColor: number
textMeasurer: ITextMeasurer
zoom: number = 1.0

Accessors

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

Methods

  • Lets a user/developer draw an overlay line on the score. Use this instead of drawLine, which is for OSMD internally only. The MusicPage has to be specified, because each page and Vexflow backend has its own relative coordinates. (the AbsolutePosition of a GraphicalNote is relative to its backend) To get a MusicPage, use GraphicalNote.ParentMusicPage.

    Parameters

    Returns Node

  • activateSystemRendering(systemId: number, absBoundingRect: RectangleF2D, systemBoundingBoxInPixels: RectangleF2D, createNewImage: boolean): boolean
  • calculatePixelDistance(unitDistance: number): number
  • clear(): void
  • drawBoundingBox(bbox: BoundingBox, color?: string, drawCross?: boolean, labelText?: string, layer?: number): Node
  • drawGraphicalLine(graphicalLine: GraphicalLine, lineWidth: number, colorOrStyle?: string): Node
  • drawLine(start: PointF2D, stop: PointF2D, color?: string, lineWidth?: number): Node
  • drawLineAsHorizontalRectangle(line: GraphicalLine, layer: number): void
  • drawLineAsVerticalRectangle(line: GraphicalLine, layer: number): void
  • drawSampledLine(line: number[], startPosition: PointF2D, width: number, color?: string): void
  • Draw a line with a width and start point in a chosen color (used for skyline/bottom line debugging) from a simple array

    Parameters

    • line: number[]

      numeric array. 0 marks the base line. Direction given by sign. Dimensions in units

    • startPosition: PointF2D

      Start position in units

    • width: number

      Max line width in units

    • color: string = "#FF0000FF"

      Color to paint in. Default is red

    Returns void

  • drawScrollIndicator(): void
  • drawSplitScreenLine(): void
  • drawSystemLineObject(systemLine: SystemLine): void
  • renderLabel(graphicalLabel: GraphicalLabel, layer: number, bitmapWidth: number, bitmapHeight: number, fontHeightInPixel: number, screenPosition: PointF2D): Node
  • Renders a Label to the screen (e.g. Title, composer..)

    Parameters

    • graphicalLabel: GraphicalLabel

      holds the label string, the text height in units and the font parameters

    • layer: number

      is the current rendering layer. There are many layers on top of each other to which can be rendered. Not needed for now.

    • bitmapWidth: number

      Not needed for now.

    • bitmapHeight: number

      Not needed for now.

    • fontHeightInPixel: number
    • screenPosition: PointF2D

      the position of the lower left corner of the text in screen coordinates

    Returns Node

  • renderRectangle(rectangle: RectangleF2D, layer: number, styleId: number, colorHex: string, alpha: number): Node
  • setZoom(zoom: number): void

Generated using TypeDoc