-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experimental (totally untested) Push2 support
- Loading branch information
1 parent
c42e3b3
commit 18b6045
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Push2/__init__.py | ||
from __future__ import absolute_import, print_function | ||
|
||
from Ubermap import UbermapDevicesPatches | ||
|
||
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='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: 'push2', | ||
caps.AUTO_LOAD_KEY: True} | ||
|
||
|
||
def create_instance(c_instance): | ||
from .push2 import Push2 | ||
from .push2_model import Root, Sender | ||
root = Root(sender=Sender(message_sink=c_instance.send_model_update, process_connected=c_instance.process_connected)) | ||
|
||
UbermapDevicesPatches.apply_ubermap_patches() | ||
|
||
return Push2(c_instance=c_instance, model=root) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters