Array
public extension Array where Element: MIDITimeTableRowRepresentable
-
Number of rows in the table data.
Declaration
Swift
var rowCount: Int { get } -
Number of cells in the given row.
Declaration
Swift
func cellCount(inRow row: Int) -> Int -
Cell at a table index.
Declaration
Swift
func cell(at index: MIDITimeTableCellIndex) -> Element.Cell -
Stable id for the cell at a table index.
Declaration
Swift
func cellID(at index: MIDITimeTableCellIndex) -> MIDITimeTableCellID -
Position, in beats, for the cell at a table index.
Declaration
Swift
func cellPosition(at index: MIDITimeTableCellIndex) -> Double -
Duration, in beats, for the cell at a table index.
Declaration
Swift
func cellDuration(at index: MIDITimeTableCellIndex) -> Double -
Finds the current row/index pair for a stable cell id.
Declaration
Swift
func index(ofCellID id: MIDITimeTableCellID) -> MIDITimeTableCellIndex?