Protected
graphicalProtected
rulesProtected
textProtected
leadProtected
activateProtected
applyProtected
applyConverts a rectangle from unit to pixel space.
Protected
applyConverts a distance from unit to pixel space.
the distance in units
the distance in pixels
Protected
drawProtected
drawProtected
drawDraws a continuous dynamic expression (wedges) to the canvas
Protected
drawDraw all dashes to the canvas
Array of lyric dashes to be drawn
Protected
drawProtected
drawProtected
drawProtected
drawDraws an instantaneous dynamic expression (p, pp, f, ff, ...) to the canvas
GraphicalInstantaneousDynamicExpression to be drawn
Protected
drawProtected
drawDraws 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.
Protected
drawProtected
drawProtected
drawProtected
drawProtected
drawLets 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.
Optional
id: stringProtected
drawOptional
id: stringProtected
drawProtected
drawProtected
drawProtected
drawProtected
drawProtected
drawProtected
drawProtected
drawProtected
drawProtected
drawProtected
getProtected
getProtected
isProtected
renderRenders 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
Protected
renderRenders 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
Protected
render
Draw a [[GraphicalMusicSheet]] (through the .drawSheet method)
The drawing is implemented with a top-down approach, starting from a music sheet, going through pages, systems, staffs... ... and ending in notes, beams, accidentals and other symbols. It's worth to say, that this class just draws the symbols and graphical elements, using the positions that have been computed before. But in any case, some of these previous positioning algorithms need the sizes of the concrete symbols (NoteHeads, sharps, flats, keys...). Therefore, there are some static functions on the 'Bounding Boxes' section used to compute these symbol boxes at the beginning for the later use in positioning algorithms.
This class also includes the resizing and positioning of the symbols due to user interaction like zooming or panning.