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 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: GraphicalMusicPageThe 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: GraphicalMusicPageThe 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: GraphicalMusicPageThe 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: GraphicalMusicPageThe 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.
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:
StatictransformCalculate the Absolute Positions from the Relative Positions.
The graphical counterpart of a [[MusicSheet]]