MIDIPianoRollPosition
public struct MIDIPianoRollPosition : Equatable, Comparable, Codable, CustomStringConvertible
Represents the position on the piano roll by bar, beat, subbeat and cent values.
-
Bar number.
Declaration
Swift
public var bar: Int -
Beat number of a bar, between 0 and 4.
Declaration
Swift
public var beat: Int -
Subbeat number of a beat, between 0 and 4.
Declaration
Swift
public var subbeat: Int -
Cent value of a subbeat, between 0 and 240
Declaration
Swift
public var cent: Int -
Zero position.
Declaration
Swift
public static let zero: MIDIPianoRollPosition -
Returns true if beat, subbeat and cent is zero. The position is on the begining of a bar.
Declaration
Swift
public var isBarPosition: Bool { get } -
Initilizes the position.
Declaration
Swift
public init(bar: Int, beat: Int, subbeat: Int, cent: Int)Parameters
barBar number≥
beatBeat number.
subbeatSubbeat number.
centCent number.
-
Returns the next position.
Declaration
Swift
public var next: MIDIPianoRollPosition { get } -
Returns the previous position.
Declaration
Swift
public var previous: MIDIPianoRollPosition { get } -
Returns piano roll beat text friendly string.
Declaration
Swift
public var description: String { get }
-
Undocumented
Declaration
Swift
public var noteValue: NoteValue? { get }
View on GitHub
MIDIPianoRollPosition Structure Reference