public
Description: objective-c MIDI framework for os x
Homepage:
Clone URL: git://github.com/mrRay/vvmidi.git
vvmidi / VVMIDIMessage.h
100644 44 lines (35 sloc) 1.094 kb
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
37
38
39
40
41
42
43
44
//
// VVMIDIMessage.h
// VVMIDI
//
// Created by bagheera on 10/19/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
 
#import <Cocoa/Cocoa.h>
#import <CoreMIDI/CoreMIDI.h>
 
 
 
@interface VVMIDIMessage : NSObject <NSCopying> {
Byte type;
Byte channel;
Byte data1; // usually controller/note #
Byte data2; // usually controller/note value
// array of NSNumbers, or nil if this isn't a sysex message
// DOES NOT CONTAIN SYSEX START/STOP STATUS BYTES (0xF0 / 0xF7)
NSMutableArray *sysexArray;
}
 
+ (id) createWithType:(Byte)t channel:(Byte)c;
+ (id) createFromVals:(Byte)t:(Byte)c:(Byte)d1:(Byte)d2;
+ (id) createWithSysexArray:(NSMutableArray *)s;
- (id) initWithType:(Byte)t channel:(Byte)c;
- (id) initFromVals:(Byte)t:(Byte)c:(Byte)d1:(Byte)d2;
- (id) initWithSysexArray:(NSMutableArray *)s;
 
- (NSString *) description;
- (NSString *) lengthyDescription;
 
- (Byte) type;
- (void) setType:(Byte)newType;
- (Byte) channel;
- (void) setData1:(Byte)newData;
- (Byte) data1;
- (void) setData2:(Byte)newData;
- (Byte) data2;
- (NSMutableArray *) sysexArray;
 
@end