Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Devices/Push2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# 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 __future__ import absolute_import, print_function, unicode_literals

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'),
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: 'push2',
caps.TYPE_KEY: u'push2',
caps.AUTO_LOAD_KEY: True}


Expand All @@ -24,4 +24,4 @@ def create_instance(c_instance):

UbermapDevicesPatches.apply_ubermap_patches()

return Push2(c_instance=c_instance, model=root)
return Push2(c_instance=c_instance, model=root, decoupled_parameter_list_change_notifications=True)
8 changes: 4 additions & 4 deletions Devices/UbermapDevicesPatches.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __getattribute__(self, name):
############################################################################################################

# BankingUtil
from pushbase import banking_util
from ableton.v2.control_surface import banking_util

def apply_banking_util_patches():
# device_bank_names - return Ubermap bank names if defined, otherwise use the default
Expand Down Expand Up @@ -67,7 +67,7 @@ def device_bank_count(device, bank_size = 8, definition = None, definitions = No
############################################################################################################

# DeviceParameterBank
from pushbase.device_parameter_bank import DeviceParameterBank
from ableton.v2.control_surface.device_parameter_bank import DeviceParameterBank

def apply_device_parameter_bank_patches():
# _collect_parameters - this method is called by _update_parameters to determine whether we should
Expand All @@ -90,8 +90,8 @@ def _collect_parameters(self):
############################################################################################################

# DeviceComponent
from pushbase.device_component import DeviceComponent
from pushbase.parameter_provider import ParameterInfo
from ableton.v2.control_surface.components.device import DeviceComponent
from ableton.v2.control_surface.parameter_provider import ParameterInfo

def apply_device_component_patches():
# _get_provided_parameters - return Ubermap parameter names if defined, otherwise use the default
Expand Down