measures (i,j) where i is the measure number and j the staff index (e.g. staff indices 0, 1 for two piano parts)
Perform a binary search for the absolute given Timestamp in all the GraphicalVerticalContainers.
Generic method to find graphical objects on the sheet at a given location.
Position in units where we are searching on the sheet
String representation of the class we want to find. Must extend GraphicalObject
The area in units around our point to look for our graphical object, default 5
The max area we want to search around our point
The amount we expand our search area for each iteration that we don't find an object of the given type
A callback that determines if the object should be included in our results- return false for no, true for yes
Returns nearest object of type T near clickPosition.
E.g. GetNearestObject
Returns the index of the closest next (later) vertical container which has at least some visible staff entry, with respect to the given index.
Returns the index of the closest previous (earlier) vertical container which has at least some visible staff entry, with respect to the given index.
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.
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.
Return the longest StaffEntry duration from a GraphicalVerticalContainer.
the index of the vertical container
Create the VerticalContainer and adds it to the List at the correct Timestamp position.
Get visible staffentry for the container given by the index.
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.
Calculate the Absolute Positions from the Relative Positions.
Generated using TypeDoc
The graphical counterpart of a MusicSheet