-
Notifications
You must be signed in to change notification settings - Fork 82
/
__init__.py
56 lines (54 loc) · 1.45 KB
/
__init__.py
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
from _Framework.Capabilities import CONTROLLER_ID_KEY, PORTS_KEY, NOTES_CC, SCRIPT, SYNC, REMOTE, controller_id, inport, outport
from .Launchpad import Launchpad
def create_instance(c_instance):
""" Creates and returns the Launchpad script """
return Launchpad(c_instance)
def get_capabilities():
return {
CONTROLLER_ID_KEY: controller_id(
vendor_id = 4661,
product_ids = [
14, # Lauchpad
54, # Launchpad Mini
105,# Launchpad ?
106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,
275,# Launchpad Mini MK3'
259 # launchpad X
],
model_name =
[
'Launchpad',
'Launchpad Mini',
'Launchpad S',
'Launchpad MK2',
'Launchpad MK2 2',
'Launchpad MK2 3',
'Launchpad MK2 4',
'Launchpad MK2 5',
'Launchpad MK2 6',
'Launchpad MK2 7',
'Launchpad MK2 8',
'Launchpad MK2 9',
'Launchpad MK2 10',
'Launchpad MK2 11',
'Launchpad MK2 12',
'Launchpad MK2 13',
'Launchpad MK2 14',
'Launchpad MK2 15',
'Launchpad MK2 16',
'Launchpad Mini MK3',
'Launchpad X'
]
),
PORTS_KEY:
[
#inport(props=[NOTES_CC, SCRIPT]),
#inport(props=[NOTES_CC, REMOTE]),
#outport(props=[NOTES_CC, SYNC, SCRIPT]),
#outport(props=[REMOTE])
inport(props = [NOTES_CC, REMOTE]),
inport(props = [NOTES_CC, REMOTE, SCRIPT]),
outport(props = [NOTES_CC, SYNC, REMOTE]),
outport(props = [NOTES_CC, SYNC, REMOTE, SCRIPT])
]
}