Converts a rectangle from unit to pixel space.
Converts a distance from unit to pixel space.
the distance in units
the distance in pixels
Draws a continuous dynamic expression (wedges) to the canvas
Draw all dashes to the canvas
Array of lyric dashes to be drawn
Draws an instantaneous dynamic expression (p, pp, f, ff, ...) to the canvas
Draws a line in the current backend. Only usable while pages are drawn sequentially, because backend reference is updated in that process. To add your own lines after rendering, use DrawOverlayLine.
Draw all lyrics to the canvas
Array of lyric entries to be drawn
Number of the layer that the lyrics should be drawn in
Draw a line with a width and start point in a chosen color (used for skyline/bottom line debugging) from a simple array
numeric array. 0 marks the base line. Direction given by sign. Dimensions in units
Start position in units
Max line width in units
Color to paint in. Default is red
Renders a Label to the screen (e.g. Title, composer..)
holds the label string, the text height in units and the font parameters
is the current rendering layer. There are many layers on top of each other to which can be rendered. Not needed for now.
Not needed for now.
Not needed for now.
the position of the lower left corner of the text in screen coordinates
Renders a rectangle with the given style to the screen. It is given in screen coordinates.
the rect in screen coordinates
is the current rendering layer. There are many layers on top of each other to which can be rendered. Not needed for now.
the style id
alpha value between 0 and 1
Generated using TypeDoc
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.