MIKMIDIChannelPressureCommand
Objective-C
@interface MIKMIDIChannelPressureCommand : MIKMIDIChannelVoiceCommand
Swift
class MIKMIDIChannelPressureCommand : MIKMIDIChannelVoiceCommand
A MIDI channel pressure message. This message is most often sent by pressing down on the key after it “bottoms out”. This differs from a MIKMIDIPolyphonicKeyPressureCommand in that is the single greatest pressure of all currently depressed keys, hence the lack of a note property.
-
Convenience method for creating a channel pressure command.
Declaration
Objective-C
+ (nonnull instancetype)channelPressureCommandWithPressure:(NSUInteger)pressure channel:(UInt8)channel timestamp:(nullable NSDate *) timestamp;
Swift
convenience init(pressure: UInt, channel: UInt8, timestamp: Date?)
Parameters
pressure
The pressure for the command. Must be between 0 and 127
channel
The channel for the command. Must be between 0 and 15.
timestamp
The timestamp for the command. Pass nil to use the current date/time.
Return Value
An initialized MIKMIDIChannelPressureCommand instance.
-
Key pressure of the channel pressure message. In the range 0-127.
Declaration
Objective-C
@property (nonatomic, readonly) NSUInteger pressure;
Swift
var pressure: UInt { get }