-
Notifications
You must be signed in to change notification settings - Fork 3
/
__init__.py
20 lines (17 loc) · 849 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#Embedded file name: /Users/versonator/Jenkins/live/Projects/AppLive/Resources/MIDI Remote Scripts/Push/__init__.py
from Push import Push
from _Framework.Capabilities import controller_id, inport, outport, CONTROLLER_ID_KEY, PORTS_KEY, HIDDEN, NOTES_CC, SCRIPT, SYNC, FIRMWARE_KEY, AUTO_LOAD_KEY
def get_capabilities():
return {CONTROLLER_ID_KEY: controller_id(vendor_id=2536, product_ids=[21], model_name='Ableton Push'),
PORTS_KEY: [inport(props=[HIDDEN, NOTES_CC, SCRIPT]),
inport(props=[]),
outport(props=[HIDDEN,
NOTES_CC,
SYNC,
SCRIPT]),
outport(props=[])],
FIRMWARE_KEY: 'push_updater',
AUTO_LOAD_KEY: True}
def create_instance(c_instance):
""" Creates and returns the L9C script """
return Push(c_instance)