Type Definitions
The following type definitions are available globally.
-
This is currently undocumented. Documentation contributions are always welcome!
Declaration
Objective-C
typedef void(^MIKMIDIClientDestinationEndpointEventHandler)(MIKMIDIClientDestinationEndpoint *destination, MIKArrayOf(MIKMIDICommand *) *commands)
Swift
typealias MIKMIDIClientDestinationEndpointEventHandler = (MIKMIDIClientDestinationEndpoint, [MIKMIDICommand]) -> Void
-
Completion block for mapping generation method.
Declaration
Objective-C
typedef void (^MIKMIDIMappingGeneratorMappingCompletionBlock)( MIKMIDIMappingItem *_Nonnull, NSArray<MIKMIDICommand *> *_Nonnull, NSError *_Nullable)
Swift
typealias MIKMIDIMappingGeneratorMappingCompletionBlock = (MIKMIDIMappingItem, [MIKMIDICommand], Error?) -> Void
Parameters
mappingItem
The mapping item generated, or nil if mapping failed.
messages
The messages used to generate the mapping. May not include all messages received during mapping.
error
If mapping failed, an NSError explaing the failure, nil if mapping succeeded.
-
This is currently undocumented. Documentation contributions are always welcome!
Declaration
Objective-C
typedef MIKMIDIMetaEventType MIKMIDIMetaEventTypeType
Swift
typealias MIKMIDIMetaEventTypeType = MIKMIDIMetaEventType
-
Represents a time signature. Note that in contrast to time signature events in raw MIDI, the denominator here is the “natural” denominator for the time signature. e.g. 4/4 time is represented with a numerator of 4 and denominator of 4.
See moreDeclaration
Objective-C
typedef struct MIKMIDITimeSignature MIKMIDITimeSignature
-
Block used by various MIKMIDI APIs that deliver incoming MIDI messages.
Declaration
Objective-C
typedef void (^MIKMIDIEventHandlerBlock)(MIKMIDISourceEndpoint *_Nonnull, NSArray<MIKMIDICommand *> *_Nonnull)
Swift
typealias MIKMIDIEventHandlerBlock = (MIKMIDISourceEndpoint, [MIKMIDICommand]) -> Void
Parameters
source
The source endpoint from which MIDI messagse were received.
commands
An NSArray containing received MIKMIDICommand instances.