Metered
open class Metered: Duration
Metered** is a subclass of Duration that acts as an abstraction for a duration that has some metric context. The lastInterval property reflects the most recent absolute-time interval represented by an instance.
-
The underlying meter.
Declaration
Swift
public var meter: TimeSignature? = TimeSignature(4, 4) -
A computed property that reflects the meter property, provided for convenience.
Declaration
Swift
public var timeSignature: TimeSignature? -
The underlying tempo.
Declaration
Swift
public var tempo = Tempo(120) -
A computed property that reflects the tempo’s beats-per-minute value, provided for convenience.
Declaration
Swift
public var BPM: Double -
A NoteValue instance to easily change duration to another regular metric subdivision.
Declaration
Swift
public var noteValue: NoteValue = .n_4 -
Initialize with a tempo, a meter, and a beat value.
Declaration
Swift
public init(initialTempo: Tempo, initialMeter: TimeSignature, initialValue: NoteValue)
View on GitHub
Metered Class Reference