Delay all UDP messages by a fixed amount

spin lud's icon

Hi! I need to delay all the UDP messages by a fixed amount in audio samples (to be converted in a time measure probably). It doesn't really matter if the messages are delayed upon sending or receiving, as long as they are delayed.

Is that possible to achieve?

Martin Olavarria's icon

Hi Spin.

Are your UDP messages coming from a [udprecive] object? Because all that data lives in the "control data domain", unlike lets say audio rate data. What I mean is the difference between [delay] and [delay~] is important if you need to focus on audio samples or miliseconds.

Since UDP data can be of any type you could try [pipe] or if you are sticking with numbers could transform to audio rate with [sig~]

Max Patch
Copy patch and select New From Clipboard in Max.

spin lud's icon

Hi, they are control messages (numbers) coming from Ableton. I am exploring the pipe object indeed, see it can used in this scenario