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
beats
Number of beats in a measure
noteValue
Note 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
beats
Number of beats in a measure
division
Number of the beats.