-
Notifications
You must be signed in to change notification settings - Fork 34
/
CSMidiWrapper.h
36 lines (23 loc) · 933 Bytes
/
CSMidiWrapper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// CSMidiWrapper.h
// CocoaSplit
//
// Created by Zakk on 5/16/15.
// Copyright (c) 2015 Zakk. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MIKMIDI.h"
@interface CSMidiWrapper : NSObject <MIKMIDIMappingGeneratorDelegate>
{
MIKMIDIMappingGenerator *_mapGenerator;
}
@property (strong) MIKMIDIDevice *device;
@property (strong) MIKMIDIMapping *deviceMapping;
@property (nonatomic, copy) id<MIKMIDIResponder>(^redirectResponderBlock)(MIKMIDICommand *command, MIKMIDIMappingItem *item);
-(instancetype)initWithDevice:(MIKMIDIDevice *)device;
+(NSArray *)getAllMidiDevices;
-(void)connect;
-(void)learnCommand:(NSString *)command forResponder:(id<MIKMIDIMappableResponder>)responder completionBlock:(void (^)(CSMidiWrapper *wrapper, NSString *command))completionBlock;
-(void)cancelLearning;
-(void)forgetCommand:(NSString *)command forResponder:(id<MIKMIDIMappableResponder>)responder;
@end