MIKMIDICommandThrottler
Objective-C
@interface MIKMIDICommandThrottler : NSObjectSwift
class MIKMIDICommandThrottler : NSObjectMIKMIDICommandThrottler is a simple utility class useful for throttling e.g. jog wheel/turntable controls, which otherwise send many messages per revolution.
- 
                  
                  Determine whether a command from a throttled control should be handled or discarded. DeclarationObjective-C - (BOOL)shouldPassCommand:(nonnull MIKMIDIChannelVoiceCommand *)command forThrottlingFactor:(NSUInteger)factor;Swift func shouldPass(_ command: MIKMIDIChannelVoiceCommand, forThrottlingFactor factor: UInt) -> BoolParameterscommandThe command received from the throttled control. factorThe throttling factor to apply. e.g. a value of 20 means that only 1 of every 20 messages should be handled. Return ValueYES if the command should be handled, NO if it should be discarded. 
- 
                  
                  Resets the throttle counter for command. DeclarationObjective-C - (void)resetThrottlingCountForCommand: (nonnull MIKMIDIChannelVoiceCommand *)command;Swift func resetThrottlingCount(for command: MIKMIDIChannelVoiceCommand)ParameterscommandThe command received from the throttled control. 
 View on GitHub
View on GitHub MIKMIDICommandThrottler Class Reference
        MIKMIDICommandThrottler Class Reference