Constants

The following constants are available globally.

  • Posted whenever a device is added (connected) to the system.

    Declaration

    Objective-C

    extern NSString *const _Nonnull MIKMIDIDeviceWasAddedNotification

    Swift

    static let MIKMIDIDeviceWasAdded: NSNotification.Name
  • Posted whenever a device is removed (disconnected) from the system.

    Declaration

    Objective-C

    extern NSString *const _Nonnull MIKMIDIDeviceWasRemovedNotification

    Swift

    static let MIKMIDIDeviceWasRemoved: NSNotification.Name
  • Posted whenever a virtual endpoint is added to the system.

    Declaration

    Objective-C

    extern NSString *const _Nonnull MIKMIDIVirtualEndpointWasAddedNotification

    Swift

    static let MIKMIDIVirtualEndpointWasAdded: NSNotification.Name
  • Posted whenever a virtual endpoint is removed from the system.

    Declaration

    Objective-C

    extern NSString *const _Nonnull MIKMIDIVirtualEndpointWasRemovedNotification

    Swift

    static let MIKMIDIVirtualEndpointWasRemoved: NSNotification.Name
  • Key whose value is the device added or removed in MIKMIDIDeviceWasAdded/RemovedNotification’s userInfo dictionary.

    Declaration

    Objective-C

    extern NSString *const _Nonnull MIKMIDIDeviceKey

    Swift

    let MIKMIDIDeviceKey: String
  • Key whose value is the virtual endpoint added or removed in MIKMIDIVirtualEndpointWasAdded/RemovedNotification’s userInfo dictionary.

    Declaration

    Objective-C

    extern NSString *const _Nonnull MIKMIDIEndpointKey

    Swift

    let MIKMIDIEndpointKey: String
  • Error domain for errors generated by MIKMIDI.

    Declaration

    Objective-C

    extern NSString *const _Nonnull MIKMIDIErrorDomain

    Swift

    let MIKMIDIErrorDomain: String
  • This is currently undocumented. Documentation contributions are always welcome!

    Declaration

    Objective-C

    static const NSUInteger MIKMIDIEventMetadataStartOffset = 8

    Swift

    let MIKMIDIEventMetadataStartOffset: UInt
  • This is currently undocumented. Documentation contributions are always welcome!

    Declaration

    Objective-C

    FOUNDATION_EXPORT const MusicTimeStamp MIKMIDISequenceLongestTrackLength

    Swift

    let MIKMIDISequenceLongestTrackLength: MusicTimeStamp
  • Sent out shortly before playback loops.

    Declaration

    Objective-C

    extern NSString *const _Nonnull MIKMIDISequencerWillLoopNotification

    Swift

    static let MIKMIDISequencerWillLoop: NSNotification.Name
  • Set loopEndTimeStamp to this to have the loop end at the end of the sequence regardless of sequence length.

    Declaration

    Objective-C

    extern const MusicTimeStamp MIKMIDISequencerEndOfSequenceLoopEndTimeStamp

    Swift

    let MIKMIDISequencerEndOfSequenceLoopEndTimeStamp: MusicTimeStamp
  • This is currently undocumented. Documentation contributions are always welcome!

    Declaration

    Objective-C

    extern uint32_t const kMIKMIDISysexNonRealtimeManufacturerID

    Swift

    let kMIKMIDISysexNonRealtimeManufacturerID: UInt32
  • This is currently undocumented. Documentation contributions are always welcome!

    Declaration

    Objective-C

    extern uint32_t const kMIKMIDISysexRealtimeManufacturerID

    Swift

    let kMIKMIDISysexRealtimeManufacturerID: UInt32
  • This is currently undocumented. Documentation contributions are always welcome!

    Declaration

    Objective-C

    extern uint8_t const kMIKMIDISysexChannelDisregard

    Swift

    let kMIKMIDISysexChannelDisregard: UInt8
  • This is currently undocumented. Documentation contributions are always welcome!

    Declaration

    Objective-C

    extern uint8_t const kMIKMIDISysexBeginDelimiter

    Swift

    let kMIKMIDISysexBeginDelimiter: UInt8
  • This is currently undocumented. Documentation contributions are always welcome!

    Declaration

    Objective-C

    extern uint8_t const kMIKMIDISysexEndDelimiter

    Swift

    let kMIKMIDISysexEndDelimiter: UInt8