Git Product home page Git Product logo

Comments (5)

ignis32 avatar ignis32 commented on June 18, 2024 1

I guess I know why.

 2023-11-05T07:02:26.083022: info: Python: INFO:_Framework.ControlSurface:82 - LOG: (ClyphX) nativeKONTROL LOG ------- ClyphX v2.7.3 for Live 11 ------- Live Version: 11.3.13 ------- END LOG
2023-11-05T07:02:26.083052: info: RemoteScriptMessage: (ClyphX) nativeKONTROL LOG ------- ClyphX v2.7.3 for Live 11 ------- Live Version: 11.3.13 ------- END LOG
2023-11-05T07:02:26.110221: info: Python: INFO:_Framework.ControlSurface:109 - LOG: (ClyphX)  ------- Attempting to read UserSettings file: C:\apps-mus\Ableton\Live 11 Intro\Resources\MIDI Remote Scripts/ClyphX/UserSettings.txt-------
2023-11-05T07:02:26.110272: info: RemoteScriptMessage: (ClyphX)  ------- Attempting to read UserSettings file: C:\apps-mus\Ableton\Live 11 Intro\Resources\MIDI Remote Scripts/ClyphX/UserSettings.txt------- 
2023

There are two problems in one.

  1. It is looking for "MIDI Remote Scripts" but in the user library folder is called just "Remote Scripts", differently.
  2. sys.path does not contain any User Library folders, so it is looking only in application installation folder only anyway.

Seems like the following slapdash workaround worked for me:
( looked how AbletonOSC finds it's own log folder within User Library)

Replaced in ClyphX.py:

            mrs_path = ''
            for path in sys.path:
                if 'MIDI Remote Scripts' in path:
                    mrs_path = path
                    break
            user_file = mrs_path + FOLDER + 'UserSettings.txt'
         

->

            import os
            module_path = os.path.dirname(os.path.realpath(__file__))  
            user_file = module_path + '/UserSettings.txt'

Now it finds UserSettings.txt just fine:

2023-11-05T07:29:18.368806: info: Python: INFO:_Framework.ControlSurface:368 - LOG: (ClyphX)  ------- Attempting to read UserSettings file: C:\Users\Admin\Documents\Ableton\User Library\Remote Scripts\ClyphX/UserSettings.txt-------
2023-11-05T07:29:18.368855: info: RemoteScriptMessage: (ClyphX)  ------- Attempting to read UserSettings file: C:\Users\Admin\Documents\Ableton\User Library\Remote Scripts\ClyphX/UserSettings.txt------- 
2023-11-

X-Controls started to work after that.

p.s.
Maybe moving Clyphx to Ableton installation MIDI Remote Scripts folder would work, I did not check it, as I do not like the idea of messing with main installation. Moving only UserSettings.txt there does not work, as it prevents Clyphx from loading at all, probably due to some naming collision.

from clyphx-live11.

ldrolez avatar ldrolez commented on June 18, 2024

Hi, from what I see in the code it should work. Maybe a strange character after '<' ?
Which editor did you use?

from clyphx-live11.

crankedguy avatar crankedguy commented on June 18, 2024

Hi, there is no strange character. I am using VSCODE
But it doesn't matter too much anymore as I wrote my own control surface in the meanwhile.;

from clyphx-live11.

ldrolez avatar ldrolez commented on June 18, 2024

Live 10 or 11?

from clyphx-live11.

crankedguy avatar crankedguy commented on June 18, 2024

11.2.5

from clyphx-live11.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.