Whether the transposition changed since the graphical notes and chord symbols were created: osmd.Sheet.Transpose, an instrument's Transpose, or, while one of them isn't 0, osmd.TransposeCalculator. The notes and chord symbols are transposed when they are created, the key signatures in each layout (reCalculate()), so osmd.render() creates the graphic again when the transposition changed. A changed option of the same calculator (e.g. IntervalTransposeCalculator.AvoidDoubleAccidentals) doesn't count: call osmd.updateGraphic() after that.
Whether a voice was shown or hidden (Voice.Visible, also set by Instrument.Visible) since the graphical notes were created. The notes of hidden voices are left out when they are created, or created invisible with EngravingRules.HiddenVoicesKeepLayout, and the multiple rest measures follow the visible voices, so osmd.render() creates the graphic again when this changed.
Find a measure by its zero-based source index and staff index. Collapsed multiple-rest members resolve to their representative measure (the multiple rest measure), and an index beyond the score's end (e.g. from the cursor) resolves to the last measure.
Search the MeasureList for a certain GraphicalStaffEntry with the given SourceStaffEntry, at a certain verticalIndex (eg a corresponding Staff), starting at a specific horizontalIndex (eg specific GraphicalMeasure).
Return the next (to the right) not null GraphicalStaffEntry from a given Index.
Returns the label at the position, e.g. of a click (whose bounding box contains it), e.g. a lyric or the title, or undefined.
The position in units
Optionalpage: GraphicalMusicPage
The page to search, e.g. the one clicked on: each page has its own coordinates, so the position is on every page. By default, all pages.
Returns the object of the class at the position, e.g. of a click, or undefined: the same as getClickedObjectOfType().
OptionalclassOrName: string | ClassType<T>Optionalpage: GraphicalMusicPageReturns the object of the class whose bounding box contains the position, e.g. of a click, or undefined: e.g. getClickedObjectOfType(position, GraphicalStaffEntry) returns the staff entry there. Of objects containing each other, the innermost one, e.g. without a class, at a lyric, its label rather than its staff entry, measure or page. For the object nearest to the position, see GetNearestObject().
The position in units
OptionalclassOrName: string | ClassType<T>
The class of the object, e.g. GraphicalStaffEntry: the type parameter T alone doesn't select it, types don't exist at runtime. Or its name, which is unreliable in minified builds (see AClassHierarchyTrackable.isInstanceOfClass()). By default, any graphical object.
Optionalpage: GraphicalMusicPage
The page to search, e.g. the one clicked on: each page has its own coordinates, so the position is on every page. By default, all pages: the object on the first page that has one there.
Returns the GraphicalMeasure with the given SourceMeasure as Parent at the given staff index.
Perform a binary search for the absolute given Timestamp in all the GraphicalVerticalContainers.
Returns the note (head) nearest to the position, e.g. of a click: the nearest note of the nearest voice entry.
The position in units
Unused
Optionalpage: GraphicalMusicPage
The page to search, e.g. the one clicked on: each page has its own coordinates, so the position is on every page. By default, all pages.
Returns nearest object of type T near clickPosition. E.g. GetNearestObject(pos, GraphicalMeasure) returns the nearest measure. Note that there is also GetNearestStaffEntry(), which has a bit more specific code for staff entries.
The class of the object, e.g. GraphicalMeasure. Or its name (e.g. GraphicalMeasure.name), which is unreliable in minified builds: they can give other classes the same name, e.g. GraphicalNote (see AClassHierarchyTrackable.isInstanceOfClass()).
Optionalpage: GraphicalMusicPage
The page to search, e.g. the one clicked on: each page has its own coordinates, so the position is on every page. By default, all pages.
Returns the staff entry nearest to the position, e.g. of a click.
The position in units
Optionalpage: GraphicalMusicPage
The page to search, e.g. the one clicked on: each page has its own coordinates, so the position is on every page. By default, all pages.
Returns the voice entry with the note (head) nearest to the position, e.g. of a click.
The position in units
Whether to skip voice entries of grace notes
Optionalpage: GraphicalMusicPage
The page to search, e.g. the one clicked on: each page has its own coordinates, so the position is on every page. By default, all pages.
Returns the index of the closest next (later) vertical container which has at least some visible staff entry, with respect to the given index.
Create the VerticalContainer and adds it to the List at the correct Timestamp position.
Returns the index of the closest previous (earlier) vertical container which has at least some visible staff entry, with respect to the given index.
Get visible staffentry for the container given by the index.
Whether to skip entries whose x position doesn't reliably reflect their timestamp (see isReliableCursorXAnchor), for cursor positioning by timestamp.
Does a binary search on the container list and returns the VerticalContainer with the given Timestamp. The search begins at startIndex, if given. If the timestamp cannot be found, null is returned.
The timestamp for which the container shall be found.
The index from which the search starts in the container list.
Get a List with the indices of all the visible GraphicalMeasures and calculates their corresponding indices in the first SourceMeasure, taking into account Instruments with multiple Staves. Hidden staves (Staff.Visible = false) of a visible instrument are left out, so the list matches the drawn staff lines (see MusicSystemBuilder.layoutSystemStaves()).
Empties the lists of graphical objects for creating them from the music sheet (MusicSheetCalculator.prepareGraphicalMusicSheet()), and remembers the transposition and the visible voices they are created with, see TranspositionChanged and VoiceVisibilityChanged.
Return the active Clefs at the start of the first SourceMeasure.
Whether a staff entry's x position is a reliable anchor for mapping a timestamp to an x position (cursor positioning during playback, see calculateXPositionFromTimestamp). Two kinds of entries are excluded:
Returns the label at the position, e.g. of a click, or undefined: see GetClickableLabel().
Optionalpage: GraphicalMusicPageReturns the timestamp of the staff entry at the position, e.g. of a click (whose bounding box contains it), or undefined. For the timestamp of the nearest staff entry, see tryGetTimeStampFromPosition() (with a capital S).
The position in units
Optionalpage: GraphicalMusicPage
The page to search, e.g. the one clicked on: each page has its own coordinates, so the position is on every page. By default, all pages.
StatictransformCalculate the Absolute Positions from the Relative Positions.
The graphical counterpart of a [[MusicSheet]]