Added MIDI action for freeze frame

This commit is contained in:
Zakk 2016-11-21 04:01:48 -05:00
parent 36a9855b35
commit ad21cf6ddb
2 changed files with 9 additions and 2 deletions

View file

@ -2263,7 +2263,7 @@ static NSArray *_sourceTypes = nil;
@"CKEnable", @"CKThresh", @"CKSmooth", @"BorderWidth", @"CornerRadius",
@"GradientStartX", @"GradientStartY", @"GradientStopX", @"GradientStopY",
@"ChangeInterval", @"EffectDuration", @"MultiTransition",
@"PositionX", @"PositionY"];
@"PositionX", @"PositionY", @"Freeze"];
}
-(MIKMIDIResponderType)MIDIResponderTypeForCommandIdentifier:(NSString *)commandID
@ -2275,7 +2275,7 @@ static NSArray *_sourceTypes = nil;
ret |= MIKMIDIResponderTypeButton;
}
if ([@[@"Active", @"AutoFit", @"CKEnable", @"MultiTransition"] containsObject:commandID])
if ([@[@"Active", @"AutoFit", @"CKEnable", @"MultiTransition", @"Freeze"] containsObject:commandID])
{
ret = MIKMIDIResponderTypeButton;
}
@ -2489,6 +2489,13 @@ static NSArray *_sourceTypes = nil;
-(void)handleMIDICommandFreeze:(MIKMIDICommand *)command
{
dispatch_async(dispatch_get_main_queue(), ^{
self.isFrozen = !self.isFrozen;
});
}
-(void)handleMIDICommandAutoFit:(MIKMIDICommand *)command
{