Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to LOM (Live Object Model) #65

Open
0x01011970 opened this issue Mar 16, 2024 · 4 comments
Open

Access to LOM (Live Object Model) #65

0x01011970 opened this issue Mar 16, 2024 · 4 comments

Comments

@0x01011970
Copy link

Hello,

Is there any provision to access the LOM using C / C++ code when developing an external using this SDK ?

Something that would provide similar features like the The LiveAPI Object
provides in javascript.

Cheers

@jeremybernstein
Copy link
Contributor

These APIs are currently private and probably will remain so for the foreseeable future. What are you trying to do?

@0x01011970
Copy link
Author

0x01011970 commented Mar 16, 2024

Thank you for taking the time to answer.

I would like to develop an external in C or Rust (using https://github.com/Cycling74/median) that allows me to directly access the LOM : reading properties, updating some, subscribing.

I understand I can use "live.object" or the The LiveAPI Object and even a combination of an external and these two max objects.

But it would be less convoluted to be able to directly access the LOM in a C/Rust external :

  • Less objects to create, wire, test, debug,
  • Ability to quickly develop an algorithm in a language other than JS, with multi-threading (or not) and other language features (type safety, memory safety..)

I could probably build better arguments but if it's a company policy my one voice may not do much.

@jeremybernstein
Copy link
Contributor

Couple of things: working with the LOM API from C is just as complex, if not more so, than from JS, since there is a fair amount of object management and message/state routing to deal with. JS hides quite a bit of that from you.

The LOM API is main thread only, that's an Ableton limitation, so if you expect to improve performance or execute background tasks, you're out of luck.

In short, it's not something we're eager to open up, and we'd need to do a lot of work to make it suitable for external use. If there are tasks which are annoying in JS we could help out with, in terms of building higher-level access or similar, please let us know.

@0x01011970
Copy link
Author

Thanks for these added details.

To simplify this task, my first intuition would be to re-use and expose in the SDK the C/C++ methods that are currently directly behind the javascript layer. But maybe there is a technical reason why it would not be possible.

And it still would require a good amount of work for something few or no people requested.

Thanks for the explanations 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants