Re: Ubermap for Push 2 (VST/AU parameter remapping)
Posted: Fri Apr 15, 2022 11:46 am
many thanks for the list, the differences are worthwhile indeed.
Code: Select all
2022-05-05T23:36:08.127872: info: RemoteScriptError: File "C:\ProgramData\Ableton\Live 11 Suite\Resources\MIDI Remote Scripts\Push2\__init__.py", line 22, in create_instance
2022-05-05T23:36:08.128066: info: RemoteScriptError:
2022-05-05T23:36:08.128114: info: RemoteScriptError: root = Root(sender=Sender(message_sink=(c_instance.send_model_update),
2022-05-05T23:36:08.128154: info: RemoteScriptError:
2022-05-05T23:36:08.128197: info: RemoteScriptError: AttributeError
2022-05-05T23:36:08.128236: info: RemoteScriptError: :
2022-05-05T23:36:08.128276: info: RemoteScriptError: 'MidiRemoteScript' object has no attribute 'send_model_update'Probably something has changed in Live internals. Could you provide the original __init__.pyc decompiled? I'm on different Live version, so I can't decompile it myself to look for differences.
Code: Select all
# decompyle3 version 3.8.0
# Python bytecode 3.7.0 (3394)
# Decompiled from: Python 3.7.12 | packaged by conda-forge | (default, Oct 26 2021, 05:35:01) [MSC v.1916 64 bit (AMD64)]
# Embedded file name: ..\..\..\output\Live\win_64_static\Release\python-bundle\MIDI Remote Scripts\Push2\__init__.py
# Compiled at: 2021-06-23 12:01:34
# Size of source mod 2**32: 1286 bytes
from __future__ import absolute_import, print_function, unicode_literals
def get_capabilities():
import ableton.v2.control_surface 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)))
return Push2(c_instance=c_instance,
model=root,
decoupled_parameter_list_change_notifications=True)
# okay decompiling __init__.pycYes it doesnt work on Apple M1 Ableton 11.1.1 either. Hopefully it can get fixed, as I have no clue about scripting.Holgo wrote: ↑Mon May 02, 2022 9:12 pmUbermap sounds like a fantastic way to use VSTs with the Push2. But I cannot get it to work on Live 11.1.1 on a Windows11 PC.
Once I rename the __init__.pyc and put the __init__.py in the push2-remote script folder, Live is starting, the push2 is not working any more. Going back to the original __init__.pyc the Push2 is ok again, but obviously ubermap is not doing anything.
[EDIT] This seems to be a problem with the __init__.py. I commented out the two added lines that start the ubermap script. It still does not work. Decompiling with uncompyle6 and also decompyle3 results in the same __init__.py (of course without the two ubermap-lines).
In the log.txt I get the following:Does anybody have an idea how I can fix it or where to look for further information?Code: Select all
2022-05-05T23:36:08.127872: info: RemoteScriptError: File "C:\ProgramData\Ableton\Live 11 Suite\Resources\MIDI Remote Scripts\Push2\__init__.py", line 22, in create_instance 2022-05-05T23:36:08.128066: info: RemoteScriptError: 2022-05-05T23:36:08.128114: info: RemoteScriptError: root = Root(sender=Sender(message_sink=(c_instance.send_model_update), 2022-05-05T23:36:08.128154: info: RemoteScriptError: 2022-05-05T23:36:08.128197: info: RemoteScriptError: AttributeError 2022-05-05T23:36:08.128236: info: RemoteScriptError: : 2022-05-05T23:36:08.128276: info: RemoteScriptError: 'MidiRemoteScript' object has no attribute 'send_model_update'
Thanks!
Does the error message differ from what you have posted before in this case?
Code: Select all
root = Root(sender=Sender(message_sink=(c_instance.send_model_update),
process_connected=(c_instance.process_connected)))