MIKMIDIResponderType
Objective-C
enum MIKMIDIResponderType {}
Swift
struct MIKMIDIResponderType : OptionSet
Bit-mask constants used to specify MIDI responder types for mapping. Multiple responder types can be specified by ORing them together.
See
-[MIKMIDIMappableResponder MIDIResponderTypeForCommandIdentifier:]-
Responder does not have a type. Cannot be mapped.
Declaration
Objective-C
MIKMIDIResponderTypeNone = 0
-
Type for a MIDI responder that can handle messages from a hardware absolute knob or slider. That is, one that sends control change messages with an absolute value depending on its position.
Declaration
Objective-C
MIKMIDIResponderTypeAbsoluteSliderOrKnob = 1 << 0
Swift
static var absoluteSliderOrKnob: MIKMIDIResponderType { get }
-
Type for a MIDI responder that can handle messages from a hardware relative knob. That is, a knob that sends a message for each “tick”, and whose value depends on the direction (and possibly velocity) of the knob, rather than its absolute position.
Declaration
Objective-C
MIKMIDIResponderTypeRelativeKnob = 1 << 1
Swift
static var relativeKnob: MIKMIDIResponderType { get }
-
Type for a MIDI responder that can handle messages from a hardware turntable-like jog wheel. These are relative knobs, but typically have much higher resolution than a small relative knob. They may also have a touch/pressure sensitive top to detect when the user is touching, but not turning the wheel.
Declaration
Objective-C
MIKMIDIResponderTypeTurntableKnob = 1 << 2
Swift
static var turntableKnob: MIKMIDIResponderType { get }
-
Type for a MIDI responder that can handle messages from a hardware relative knob that sends messages to simulate an absolute knob. Relative knobs on (at least) Native Instruments controllers can be configured to send messages like an absolute knob. This can pose the problem of the knob continuing to turn past its limits (0 and 127) without additional messages being sent. These knobs can and will be mapped as a regular absolute knob for responders that include MIKMIDIResponderTypeAbsoluteSliderOrKnob but not MIKMIDIResponderTypeRelativeAbsoluteKnob in the type returned by -MIDIResponderTypeForCommandIdentifier:
Declaration
Objective-C
MIKMIDIResponderTypeRelativeAbsoluteKnob = 1 << 3
Swift
static var relativeAbsoluteKnob: MIKMIDIResponderType { get }
-
Type for a MIDI responder that can handle messages from a hardware button that sends a message when pressed down, and another message when released.
Declaration
Objective-C
MIKMIDIResponderTypePressReleaseButton = 1 << 4
Swift
static var pressReleaseButton: MIKMIDIResponderType { get }
-
Type for a MIDI responder that can handle messages from a hardware button that only sends a single message when pressed down, without sending a corresponding message upon release.
Declaration
Objective-C
MIKMIDIResponderTypePressButton = 1 << 5
Swift
static var pressButton: MIKMIDIResponderType { get }
-
Convenience type for a responder that can handle messages from any type of knob.
Declaration
Objective-C
MIKMIDIResponderTypeKnob = (MIKMIDIResponderTypeAbsoluteSliderOrKnob | MIKMIDIResponderTypeRelativeKnob | MIKMIDIResponderTypeTurntableKnob | MIKMIDIResponderTypeRelativeAbsoluteKnob)
Swift
static var knob: MIKMIDIResponderType { get }
-
Convenience type for a responder that can handle messages from any type of button.
Declaration
Objective-C
MIKMIDIResponderTypeButton = (MIKMIDIResponderTypePressButton | MIKMIDIResponderTypePressReleaseButton)
Swift
static var button: MIKMIDIResponderType { get }
-
Convenience type for a responder that can handle messages from any kind of control.
Declaration
Objective-C
MIKMIDIResponderTypeAll = (9223372036854775807L * 2UL + 1UL)
Swift
static var all: MIKMIDIResponderType { get }