send/receive data between devices, what's the deal with latency ?

Learn about building and using Max for Live devices.
Post Reply
chapelier fou
Posts: 6025
Joined: Mon May 15, 2006 12:15 pm

send/receive data between devices, what's the deal with latency ?

Post by chapelier fou » Mon Sep 05, 2022 11:46 am

Is there any official info about the possible latency when using send/receive between m4l devices ?

I used to think that it was not reliable, but my recent tests seem to show that there is no latency, so I'm a bit perplex.
(I'm talking about non-critical data like MIDI note, monome grid presses, and stuff like that).

Thanks !
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

[jur]
Site Admin
Posts: 5406
Joined: Mon Jun 01, 2015 3:04 pm
Location: Ableton

Re: send/receive data between devices, what's the deal with latency ?

Post by [jur] » Mon Sep 05, 2022 12:46 pm

AFAIK it's: nothing's been done to make it reliable, so use at your own risk.
In practice though it can be totally appropriate and somehow reliable for non time-critical stuff.
Ableton Forum Moderator

chapelier fou
Posts: 6025
Joined: Mon May 15, 2006 12:15 pm

Re: send/receive data between devices, what's the deal with latency ?

Post by chapelier fou » Mon Sep 05, 2022 2:00 pm

Thanks. Since I got your attention, would you check the bottom of this topic and share your thoughts about my testing method ?
https://cycling74.com/forums/latency-of ... redictable
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

iainduncan
Posts: 42
Joined: Tue Jun 12, 2012 6:06 pm
Location: BC, Canada
Contact:

Re: send/receive data between devices, what's the deal with latency ?

Post by iainduncan » Fri Sep 09, 2022 5:27 pm

I can confirm I get a fair bit of jitter/slop when using message sends and receives between devices and tracks. I recently had a device that was using a loop of a send to a separate track's device and back to the main one, and then outputting notes. I compared against a redesign that eliminated this send/receive loop, and my jitter went away. I was getting an average of 2-3ms jitter with occasional outliers of 6-9ms. So fine for UI activity, but not good for note onsets. (this was all in the scheduler thread btw, I am sure that this is not coming from accidentally using the low thread - unless Live is deferring to the low thread on any send/receive unbeknownst to me!)

It would be fantastic to get some improved way of sending Max messages between tracks and devices, but I can see that this could be a very tall order at the code level. In standalone Max it works fine, but that's quite a different scenario.

Post Reply