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

M4L issues #33

Open
joex92 opened this issue May 23, 2023 · 10 comments
Open

M4L issues #33

joex92 opened this issue May 23, 2023 · 10 comments

Comments

@joex92
Copy link

joex92 commented May 23, 2023

Hi!
I'm working on a M4L project on Max and I want to add this object in order to send a jit.matrix through [jit.ndi.send~ ---Matrix]...
the problem is that when I finally export it to a M4L device and use it on Live, the [jit.ndi.send~] doesn't work, it ONLY works if I open the M4L device as a patch in max...
I even tried to use a subpatcher to "open" the NDI patch, like this:
image
but it doesn't work...
it ONLY works if I open it on Max:
image

is it impossible to make it work seamlessly as a M4L device?

@pixsperdavid
Copy link
Collaborator

Could you post a minimal example patch so I can try and replicate?

@randallpacker
Copy link

Would be glad to do so, but are you talking about a patch that contains six instances of jit.ndi? Is that something you need me to do?

@pixsperdavid
Copy link
Collaborator

@randallpacker Did you post in the wrong issue?

@randallpacker
Copy link

I did! I thought you wanted an example of resources used. I didn't pay attention to the forum topic! So sorry!!!

@joex92
Copy link
Author

joex92 commented May 31, 2023

@joex92
Copy link
Author

joex92 commented Jun 3, 2023

BTW there is another problem... just adding jit.ndi.send~ to the M4L device makes the Ableton Live CPU usage skyrocket from 2% to 100%...
so there might be another issue there... you can see that happening on the test M4L device I shared in the comment above...

@joex92 joex92 changed the title M4L integration M4L issues Jun 3, 2023
@pixsperdavid
Copy link
Collaborator

NDI_test_fixed.zip

The above now works for me both in M4L and in Ableton. The key issue was that jit.graph seems to output an all zero alpha plane. I added a matrix conversion from ARGB to RGB (discarding the alpha) and it works as expected.

Regarding the CPU usage, checking with task manager on Windows, the CPU usage of Live is nowhere near what it's internal meter reports when jit.ndi is sending. Are you actually experiencing any audio dropouts?

@joex92
Copy link
Author

joex92 commented Jun 6, 2023

ok, I tried it, this is what happens:
image

  • as you can see the ndi connection "005graph" is not appearing on the NDI monitor (I oppened the NDI monitor after adding the M4L device)...
  • the CPU usage IN LIVE is too high! in this case I'm not having audio issues, but on my main M4L device, the M4L device can't work smoothly, to the point where the audio starts dropping or Live itself starts slowing down... I'm using ASIO4all for the audio driver...

@pixsperdavid
Copy link
Collaborator

Can you see if there are any errors in the M4L Max window? (right click on the device title bar and select 'Open Max Window').

Interestingly the CPU usage issue seems to occur even when the object is completely disconnected from any input. I'll look into this.

@joex92
Copy link
Author

joex92 commented Jun 6, 2023

I cleared the max window, then added the M4L device and there is no errors, nothing on the max window...
image

I remade my main M4L device without the ndi objects and was using using it rn when I checked the max window... the instant I added the ndi test device, Live started to slow down and it seemed like it was about to crash but it didn't, it just took a lot of time to respond to any interaction... My main device uses jit.world, jit.catch~ and jit.gl.mesh... but even after having all that my main device just makes Live use 4% more of CPU...

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

3 participants