Track delay with Max API ?

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

Track delay with Max API ?

Post by chapelier fou » Thu Oct 02, 2025 2:15 pm

Is it possible to get/set the track delay with M4L ?
Couldn't find a way, but I thought I read somewhere it was possible...
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: 6704
Joined: Mon Jun 01, 2015 3:04 pm
Location: Ableton

Re: Track delay with Max API ?

Post by [jur] » Thu Oct 02, 2025 3:03 pm

I can't find anything in the LOM.
Ableton Forum Moderator

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

Re: Track delay with Max API ?

Post by chapelier fou » Thu Oct 02, 2025 3:06 pm

It seems so.
Doing it the hard way, shifting MIDI notes inside clips.
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

S4racen
Posts: 5987
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: Track delay with Max API ?

Post by S4racen » Thu Oct 02, 2025 5:12 pm

A standard Delay on the track set to a negative number??

USed to do that with my DJ Hybrid setup for small adjustments to sync up with Serato.

Cheers
D

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

Re: Track delay with Max API ?

Post by [jur] » Thu Oct 02, 2025 5:15 pm

S4racen wrote:
Thu Oct 02, 2025 5:12 pm
A standard Delay on the track set to a negative number??
?? :?:
Ableton Forum Moderator

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

Re: Track delay with Max API ?

Post by [jur] » Thu Oct 02, 2025 5:16 pm

Oh, the TRACK is set to a negative value, and you'd use a Delay to fine tune. Is that it Darren?
Ableton Forum Moderator

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

Re: Track delay with Max API ?

Post by chapelier fou » Thu Oct 02, 2025 5:47 pm

No I need a quick way to switch between two delay values on a midi track.
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: 6704
Joined: Mon Jun 01, 2015 3:04 pm
Location: Ableton

Re: Track delay with Max API ?

Post by [jur] » Thu Oct 02, 2025 6:55 pm

chapelier fou wrote:
Thu Oct 02, 2025 5:47 pm
No I need a quick way to switch between two delay values on a midi track.
Do you need any negative track delay, though?
Ableton Forum Moderator

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

Re: Track delay with Max API ?

Post by chapelier fou » Thu Oct 02, 2025 6:57 pm

Yes I do.
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: 6704
Joined: Mon Jun 01, 2015 3:04 pm
Location: Ableton

Re: Track delay with Max API ?

Post by [jur] » Thu Oct 02, 2025 7:45 pm

Then, taking a bit from Darren's idea, maybe you should move your notes backward and then use a Delay instance to switch to your 2nd time value?
Ableton Forum Moderator

S4racen
Posts: 5987
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: Track delay with Max API ?

Post by S4racen » Fri Oct 03, 2025 5:54 am

I used to set all the track delays backwards, then use the delay device to bring them all back to zero so i had some "wiggle room" so to speak...

Cheers
D

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

Re: Track delay with Max API ?

Post by chapelier fou » Fri Oct 03, 2025 6:11 am

Thanks for the nice ideas. Unfortunately I need this for a MIDI track. But I’m cool with shifting all notes from all clips back and forth using the call_get_all_notes method.
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

doubleUG
Posts: 306
Joined: Sun Apr 24, 2011 7:19 am

Re: Track delay with Max API ?

Post by doubleUG » Fri Oct 03, 2025 8:43 am

setting a "fake" lantency in you device should delay all other tracks.

<pre><code>
----------begin_max5_patcher----------
493.3ocmT0taiBCD72Do7Nfr5OoU.so4t9pTcBYfsItBrQ1KzDUcu60eRfnP
KpRIx16t1Cyri8ma2DQJEm.EI9k3Wiih9TGIxFyDIJDHhzROU0PU1BIsfRQO
.jDeRDNg1DMTD3UmiuKaLWGEqNx3GJjPE5fI+OoOjlDF1s2tPOO9egMw6aE8
XCfV7xBgY0VTDkue+Si.3JDO2AtSmPlcNLd3XxsA++1MlQ8Pxp4aCa.d.oki
XNPkbZKb6jeCiyd1Ljkl9ST9wIgKZXbPUDN1kTj7uQQRb+eqQPw4xS3vkfB3
HEYBtYSoWHiTSTDjE.mV1.yPel7NFUQGf5BJhRVYOBWlo7ZbPjM5XSOHdKDe
Lwbb6a87H0PhcooWnvrJaD7CK1VlUYqt8N8addRQs9GLUFlkWcTHw0gSnGje
qj8bFpvyNM8u9B71yKS9M9UN7g1Qbiqm1u0iLUMLvpfU3XebWtYX+9UaXm3H
yV1QVR0FYcyjwwvvB2ZytREbkQr11qd0xRCShqzFknWVEP1+3Q7DlTCJjwG8
9uN90aJZ4lvpgSeyLN6mf6oaBmmszttAPp76vgjtk+tPZ8NIt0Ltasy0Rj5l
bXK9RnRceF0M4doy8d5Y+CoDikWx6YAM2vUCzVWkwsq5nNVYcea2nK3KVnCd
v.
-----------end_max5_patcher-----------
</code></pre>
copy the text, open Live > drag in empty M4L device > open Max editor > paste > save M4L device
https://docs.cycling74.com/max8/vignett ... ng_patches

https://doubleUG.bandcamp.com/releases

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

Re: Track delay with Max API ?

Post by chapelier fou » Fri Oct 03, 2025 8:52 am

Nice trick, doubleUG, but I need a negative delay.
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

doubleUG
Posts: 306
Joined: Sun Apr 24, 2011 7:19 am

Re: Track delay with Max API ?

Post by doubleUG » Fri Oct 03, 2025 11:04 am

perhaps make a delay (1Bar - 500 ms) and shift the clip 1 Bar left.
copy the text, open Live > drag in empty M4L device > open Max editor > paste > save M4L device
https://docs.cycling74.com/max8/vignett ... ng_patches

https://doubleUG.bandcamp.com/releases

Post Reply