MIKMIDIChannelEvent
Objective-C
@interface MIKMIDIChannelEvent : MIKMIDIEvent
Swift
class MIKMIDIChannelEvent : MIKMIDIEvent
This is currently undocumented. Documentation contributions are always welcome!
-
Convenience method for creating a new MIKMIDIChannelEvent from a CoreMIDI MIDIChannelMessage struct.
Declaration
Objective-C
+ (nullable instancetype)channelEventWithTimeStamp:(MusicTimeStamp)timeStamp message:(MIDIChannelMessage)message;
Swift
convenience init?(timeStamp: MusicTimeStamp, message: MIDIChannelMessage)
Parameters
timeStamp
A MusicTimeStamp value indicating the timestamp for the event.
message
A MIDIChannelMessage struct containing properties for the event.
Return Value
A new instance of a subclass of MIKMIDIChannelEvent, or nil if there is an error.
-
The channel for the MIDI event.
Declaration
Objective-C
@property (nonatomic, readonly) UInt8 channel;
Swift
var channel: UInt8 { get }
-
The first byte of data for the event.
Declaration
Objective-C
@property (nonatomic, readonly) UInt8 dataByte1;
Swift
var dataByte1: UInt8 { get }
-
The second byte of data for the event.
Declaration
Objective-C
@property (nonatomic, readonly) UInt8 dataByte2;
Swift
var dataByte2: UInt8 { get }