Link 2.1 Released

Ben Bracken's icon

We are happy to announce the release of Link 2.1 which can be downloaded via the Max Package Manager.

To read more about the Max Package Manager:
https://docs.cycling74.com/userguide/package_manager/

The main change is in Link Audio timing. link.audio.receive~ now takes @latency as any Max time value, defaulting to one bar on the grid, and millisecond values are additive to the sender's delay and independent of buffer sizes on either side. Playback follows the Link beat grid, so tempo changes and clock drift should no longer affect grid synchronization, and a new @buffered read-only attribute shows the headroom.

All objects now share one host clock, which fixes link.phasor~ running early on some interfaces, the link.audio.send~ timing drift that could occur, and an @autolatency bug that did not take into consideration Max's IO vector size.

link.session gained a @devicelatency attribute for the part of device latency Max does not report, and @launchquantum for quantized launch, so Max starts on the bar with Live whether play is pressed in Max or in Live, and the followers report the start when it takes effect rather than up to a bar early. This defaults to 4, and set it to 0 if you want no launch quantization.

Under the hood, the Link SDK has been updated to v4.1, the Link audio thread runs at realtime priority, and multiple link.audio.send~s with the same name should work better.

Check out the change log below, and let us know how it is working for you. We hope to update the Link SDK to 5.x soon in order to bring over Link Arrangement (beat position) sync. Stay tuned.

New Features

  • All Link objects: Host time is now derived from one shared clock that tracks the audio interface's clock against the system clock, as the Link SDK's reference platforms do

  • Link SDK Update: bump to v4.1 (Asio 1.38.2), which fixes a beat-time rounding issue in Link Audio packet stamping and hardens packet validation

  • link.audio.receive~: @latency accepts any Max time value (note values, bars.beats.units, ticks, ms, samples). The default is 1n, one bar at 4/4: received audio plays exactly one bar later, on the grid. Tempo-relative values are grid positions; millisecond values are additive to the sender's delay and independent of buffer sizes on either side, so they no longer need to match or exceed the sender's latency setting

  • link.audio.receive~: New read-only @buffered attribute and getbuffered message report the headroom against late delivery, refreshed with @autopollstatus

  • link.audio.receive~: Grid-aligned playback now follows the Link beat grid every block, as the Link SDK's reference renderer does: tempo changes re-pitch queued material to keep it on the grid, clock drift between devices is absorbed, and a block whose audio has not fully arrived is left silent instead of partially rendered

  • link.audio.send~: Co-senders of one @name now share one stream clock, so all of their audio in a block is stamped identically; the shared mix no longer takes a lock or allocates on the audio thread; and a co-sender that stops performing (a muted poly~ voice, mute~) no longer silences the stream, which continues one block late until it returns; co-senders in one DSP chain realign on return, co-senders in separate poly~ voices may sit one signal vector apart until the stream is re-announced

  • link.audio.send~ / link.audio.receive~: The Link thread that carries the audio packets now runs at realtime priority while Link Audio is enabled, as the Link SDK's reference application does, which reduces delivery jitter under load

  • link.session: New @devicelatency attribute, a session-wide audio device latency in milliseconds added by every Link object, for the part of the device's latency Max does not report

  • link.session: Quantized launch which waits for the next quantum boundary (new @launchquantum, default one bar; 0 restores an immediate start). The setting is session-wide: a start announced by another peer is taken up by link.phasor~, link.beat and the Link clock source at their own next quantum boundary, as the Link documentation prescribes, so Max starts on the bar whether play was pressed in Max or in Live. The transport outlet reports the start when it takes effect.

Fixed Bugs

  • All Link objects: Fixed @autolatency compensating 4096 samples (93 ms at 44.1 kHz) instead of the actual I/O vector; it used the driver's maximum buffer size

  • link.audio.receive~: Fixed latency becoming very long after a change of I/O vector size until audio was disabled and re-enabled

  • link.audio.receive~: Fixed playback staying behind the grid after a stall, and off the grid after a sample-rate change, until the object was re-enabled

  • link.audio.send~: Fixed timing error accumulating from truncated block times

  • link.audio.receive~: Fixed the crackle heard when the receiver's latency was close to the sender's delivery time; the block is now left silent and reported as a dropout instead

  • link.clocksource: Transport ticks are now evaluated at speaker time, compensating Max's output latency like link.beat and link.phasor~, so events scheduled by the transport are heard on the beat

  • link.phasor~: Fixed running early without bound on audio interfaces whose clock runs faster than the system clock