-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPad.cs
57 lines (50 loc) · 1.09 KB
/
Pad.cs
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
45
46
47
48
49
50
51
52
53
54
55
56
57
using Midi;
using vJoyInterfaceWrap;
namespace midi2controller
{
enum PadColor
{
OFF = 12,
DIM_RED = 13,
MEDIUM_RED = 14,
FULL_RED = 15,
DIM_GREEN = 28,
DIM_AMBER = 29,
MEDIUM_ORANGE = 30,
FULL_ORANGE_RED = 31,
MEDIUM_GREEN = 44,
MEDIUM_YELLOW_GREEN = 45,
MEDIUM_AMBER = 46,
FULL_ORANGE = 47,
FULL_GREEN = 60,
FULL_YELLOW_GREEN = 61,
FULL_YELLOW = 62,
FULL_AMBER = 63
}
class Pad
{
private PadColor currentColor;
private Channel midiChannel;
private bool isPressed;
public Pad(Channel channel)
{
midiChannel = channel;
}
public PadColor GetColor()
{
return currentColor;
}
public void SetColor(PadColor color)
{
currentColor = color;
}
public bool IsPadPressed()
{
return isPressed;
}
public void SetIsPressed(bool pressed)
{
isPressed = pressed;
}
}
}