Inherits from NSObject
Declared in MIKMIDICommandThrottler.h

Overview

MIKMIDICommandThrottler is a simple utility class useful for throttling e.g. jog wheel/turntable controls, which otherwise send many messages per revolution.

Tasks

Instance Methods

resetThrottlingCountForCommand:

- (void)resetThrottlingCountForCommand:(MIKMIDIChannelVoiceCommand *)command
Discussion

Resets the throttle counter for command.

Parameters

command

The command received from the throttled control.

Declared In

MIKMIDICommandThrottler.h

shouldPassCommand:forThrottlingFactor:

- (BOOL)shouldPassCommand:(MIKMIDIChannelVoiceCommand *)command forThrottlingFactor:(NSUInteger)factor
Discussion

Determine whether a command from a throttled control should be handled or discarded.

Parameters

command

The command received from the throttled control.

factor

The throttling factor to apply. e.g. a value of 20 means that only 1 of every 20 messages should be handled.

Return Value

YES if the command should be handled, NO if it should be discarded.

Declared In

MIKMIDICommandThrottler.h