MIKMIDIMetaTimeSignatureEvent
Objective-C
@interface MIKMIDIMetaTimeSignatureEvent : MIKMIDIMetaEvent
Swift
class MIKMIDIMetaTimeSignatureEvent : MIKMIDIMetaEvent
A meta event containing time signature information.
-
Initializes an MIKMIDIMetaTimeSignatureEvent with the specified time signature.
Declaration
Objective-C
- (nonnull instancetype)initWithTimeSignature:(MIKMIDITimeSignature)signature timeStamp:(MusicTimeStamp)timeStamp;
Swift
init(timeSignature signature: MIKMIDITimeSignature, timeStamp: MusicTimeStamp)
Parameters
signature
An MIKMIDITimeSignature value.
timeStamp
The time stamp for the event.
Return Value
An initialized MIKMIDIMetaTimeSignatureEvent instance.
-
Initializes an MIKMIDIMetaTimeSignatureEvent with the specified time signature numerator and denominator.
Instances initialized with this initializer use the default values for metronomePulse (24) and thirtySecondsPerQuarterNote (8).
Declaration
Objective-C
- (nonnull instancetype)initWithNumerator:(UInt8)numerator denominator:(UInt8)denominator timeStamp:(MusicTimeStamp)timeStamp;
Swift
init(numerator: UInt8, denominator: UInt8, timeStamp: MusicTimeStamp)
Parameters
numerator
The numerator for the time signature, or number of beats per measure.
denominator
The denominator for the time signature, or fraction of a note per beat.
timeStamp
The time stamp for the event.
Return Value
An initialized MIKMIDIMetaTimeSignatureEvent instance.
-
The numerator of the time signature.
Declaration
Objective-C
@property (nonatomic, readonly) UInt8 numerator;
Swift
var numerator: UInt8 { get }
-
The denominator of the time signature.
Declaration
Objective-C
@property (nonatomic, readonly) UInt8 denominator;
Swift
var denominator: UInt8 { get }
-
The number of MIDI clock ticks per metronome tick.
Declaration
Objective-C
@property (nonatomic, readonly) UInt8 metronomePulse;
Swift
var metronomePulse: UInt8 { get }
-
The number of notated 32nd notes in a MIDI quarter note.
Declaration
Objective-C
@property (nonatomic, readonly) UInt8 thirtySecondsPerQuarterNote;
Swift
var thirtySecondsPerQuarterNote: UInt8 { get }