-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path__init__.py
44 lines (41 loc) · 1.66 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
# ElectrOne - init
#
# Ableton Live MIDI Remote Script for the Electra One
#
# Author: Jaap-henk Hoepman ([email protected])
#
# Distributed under the MIT License, see LICENSE
#
#
from .ElectraOne import ElectraOne
def create_instance(c_instance):
""" Creates and returns the ElectraOne script. (See DOCUMENTATION.md for
details of the interfaces.)
- c_instance: object exposing the interface to Live, ie functions
that can be called to tell Live to do something.
- result: the remote script object, whose functions Live can call
to tell it to do something.
"""
return ElectraOne(c_instance)
# TODO: copied from RemoteSL; not sure what this is needed for
def get_capabilities():
return {
CONTROLLER_ID_KEY: controller_id(vendor_id=4661, product_ids=[11], model_name=u'ElectraOne XOT'),
PORTS_KEY: [inport(props=[NOTES_CC, REMOTE]),
inport(props=[NOTES_CC, REMOTE, SCRIPT]),
outport(props=[NOTES_CC, SYNC]),
outport(props=[SCRIPT])]
}
# Push2
#def get_capabilities():
# from ableton.v2.control_surface import capabilities as caps
# return {caps.CONTROLLER_ID_KEY: caps.controller_id(vendor_id=10626, product_ids=[6503], model_name=u'Ableton Push 2'),
# caps.PORTS_KEY: [caps.inport(props=[caps.HIDDEN, caps.NOTES_CC, caps.SCRIPT]),
# caps.inport(props=[]),
# caps.outport(props=[caps.HIDDEN,
# caps.NOTES_CC,
# caps.SYNC,
# caps.SCRIPT]),
# caps.outport(props=[])],
# caps.TYPE_KEY: u'push2',
# caps.AUTO_LOAD_KEY: True}