TimeSignature
public struct TimeSignature: Codable
Defines how many beats in a measure with which note value.
-
Beats per measure.
Declaration
Swift
public var beats: Int -
Note value per beat.
Declaration
Swift
public var noteValue: NoteValueType -
Initilizes the time signature with beats per measure and the value of the notes in beat.
Declaration
Swift
public init(beats: Int = 4, noteValue: NoteValueType = .quarter)Parameters
beatsNumber of beats in a measure
noteValueNote value of the beats.
-
Initilizes the time signature with beats per measure and the value of the notes in beat. Returns nil if a division is not match a
NoteValue.Declaration
Swift
public init?(beats: Int, division: Int)Parameters
beatsNumber of beats in a measure
divisionNumber of the beats.
View on GitHub
TimeSignature Structure Reference