Enumerations
The following enumerations are available globally.
-
Types of MIDI messages. These values correspond directly to the MIDI command type values found in MIDI message data.
Note
Not all of these MIDI message types are currently explicitly supported by MIKMIDI.Declaration
Objective-C
enum MIKMIDICommandType {}
Swift
enum MIKMIDICommandType : UInt
-
Specifies behavior for connecting to a newly connected device. See -connectionManager:shouldConnectToNewlyAddedDevice:
See moreDeclaration
Objective-C
enum MIKMIDIAutoConnectBehavior {}
Swift
enum MIKMIDIAutoConnectBehavior : Int
-
Error code values for NSError objects in the MIKMIDI error domain.
See moreDeclaration
Objective-C
enum MIKMIDIErrorCode {}
Swift
enum MIKMIDIErrorCode : Int
-
Types of MIDI events. These values are used to determine which subclass to instantiate when creating a new MIDI event.
Note
These are similar, but do not directly correspond to the values of MusicEventTypeDeclaration
Objective-C
enum MIKMIDIEventType {}
Swift
enum MIKMIDIEventType : UInt
-
This is currently undocumented. Documentation contributions are always welcome!
See moreDeclaration
Objective-C
NS_ENUM(NSUInteger, MIKMIDIChannelEventType) { MIKMIDIChannelEventTypePolyphonicKeyPressure = 0xA0, MIKMIDIChannelEventTypeControlChange = 0xB0, MIKMIDIChannelEventTypeProgramChange = 0xC0, MIKMIDIChannelEventTypeChannelPressure = 0xD0, MIKMIDIChannelEventTypePitchBendChange = 0xE0, }
Swift
enum MIKMIDIChannelEventType : UInt
-
Bit-mask constants used to specify MIDI responder types for mapping. Multiple responder types can be specified by ORing them together.
See
-[MIKMIDIMappableResponder MIDIResponderTypeForCommandIdentifier:]Declaration
Objective-C
enum MIKMIDIResponderType {}
Swift
struct MIKMIDIResponderType : OptionSet
-
Possible values to return from the following methods in MIKMIDIMappingGeneratorDelegate:
-mappingGenerator:behaviorForRemappingCommandMappedToControls:toNewControl:
See moreDeclaration
Objective-C
enum MIKMIDIMappingGeneratorRemapBehavior {}
Swift
enum MIKMIDIMappingGeneratorRemapBehavior : UInt
-
Subtypes of MIKMIDIMetaEvent. You should use the corresponding meta subtypes in MIKMIDIEventType when initializing an event with -initWithTimeStamp:midiEventType:data: or similar methods.
The reason for a separate enum here, even though there is a 1 to 1 correspondence with values in MIKMIDIEventType is that these values are dictated by the MIDI standard, and overlap values defined for MusicEventType. Having these separately defined allows us to effectively “flatten” MIKMIDIEventType to treat meta event subtypes as first class event types.
See moreDeclaration
Objective-C
enum MIKMIDIMetaEventType {}
Swift
enum MIKMIDIMetaEventType : UInt8
-
This is currently undocumented. Documentation contributions are always welcome!
See moreDeclaration
Objective-C
NS_ENUM(int8_t, MIKMIDIMusicalKey) { MIKMIDIMusicalKeyCFlatMajor = -7, MIKMIDIMusicalKeyGFlatMajor, MIKMIDIMusicalKeyDFlatMajor, MIKMIDIMusicalKeyAFlatMajor, MIKMIDIMusicalKeyEFlatMajor, MIKMIDIMusicalKeyBFlatMajor, MIKMIDIMusicalKeyFMajor, MIKMIDIMusicalKeyCMajor, MIKMIDIMusicalKeyGMajor, MIKMIDIMusicalKeyDMajor, MIKMIDIMusicalKeyAMajor, MIKMIDIMusicalKeyEMajor, MIKMIDIMusicalKeyBMajor, MIKMIDIMusicalKeyFSharpMajor, MIKMIDIMusicalKeyCSharpMajor, MIKMIDIMusicalKeyAFlatMinor = MIKMIDIMusicalKeyCFlatMajor+100, MIKMIDIMusicalKeyEFlatMinor, MIKMIDIMusicalKeyBFlatMinor, MIKMIDIMusicalKeyFMinor, MIKMIDIMusicalKeyCMinor, MIKMIDIMusicalKeyGMinor, MIKMIDIMusicalKeyDMinor, MIKMIDIMusicalKeyAMinor, MIKMIDIMusicalKeyEMinor, MIKMIDIMusicalKeyBMinor, MIKMIDIMusicalKeyFSharpMinor, MIKMIDIMusicalKeyCSharpMinor, MIKMIDIMusicalKeyGSharpMinor, MIKMIDIMusicalKeyDSharpMinor, MIKMIDIMusicalKeyASharpMinor, }
Swift
enum MIKMIDIMusicalKey : Int8
-
This is currently undocumented. Documentation contributions are always welcome!
See moreDeclaration
Objective-C
NS_ENUM(UInt8, MIKMIDIMusicalScale) { MIKMIDIMusicalScaleMajor = 0, MIKMIDIMusicalScaleMinor = 1 }
Swift
enum MIKMIDIMusicalScale : UInt8
-
Types of click track statuses, that determine when the click track will be audible.
See
clickTrackStatusDeclaration
Objective-C
enum MIKMIDISequencerClickTrackStatus {}
Swift
enum MIKMIDISequencerClickTrackStatus : Int