Topic: RateSync - Clock Auto Sync for RME Recording and Network Devices (Win)

Changing the sample rate automatically is not always easy, but very convenient when it works: it saves changing the sample rate by hand at each of the clock slaves.
RateSync enables automatic switching to a different sample rate between recording interfaces and so-called network devices in scenarios where there are protocol-related difficulties with detection or where network devices – with support for AVB and Dante, which have their own clock mechanisms – cannot simply take over the clock from a master via MADI.
As we could read in this forum, RME is thinking about developing a solution, but implementing this at protocol level and in firmware is surely challenging. Meanwhile, for macOS there is a tool available to work around this situation.
See this forum posting by John (jblais): https://forum.rme-audio.de/viewtopic.ph … 64#p255364
I decided to create a Windows tool using AutoHotkey v2, which I released today.
And what can I say, it works brilliantly in my setup between:
- HDSPe MADI FX (clock master)
- M-1620 Pro D
- 12Mic
- UFX III as DURec recorder
Automatic clock synchronisation of two ADI-2 Pro FS R BE through AES and optical SPDIF (2ch protocols) works the usual way and is not in the scope of this solution: it simply works.
Download and blog article
*** Latest version is: 1.0.0(039) ***
See here: https://www.tonstudio-forum.de/blog/ent … ows-using/
What it does
It reads the sample rate of the clock master and sets the slaves to the same rate, through their ASIO driver or over the network.
When a program changes the sample rate of the clock master, the slaves follow a moment later.
Once the sample rate is set correctly, clock synchronisation happens in the usual RME quality with SteadyClock [FS].
Latest Changes
More reliable detection of ASIO devices that are switched off and on, also when several devices share one driver. Adjustable tooltip delay on the Cube.
Changes in RateSync 1.0.0(039) - Compared with Build 031
All ASIO devices using the same driver are shown separately. This allows ASIO devices such as the ADI-2/4 Pro EX to be sample-rate switched when connected via ADAT, where the exact sample rate can't be detected from the protocol.
Faster switching: ASIO slaves are detected as locked 0.75 s sooner.
Logging: more detailed performance-related information.
Setup: fits again on a Full-HD screen.
Setup (Devices): displays eight devices without scrolling.
Setup (Support): vertical space used more efficiently to display more lines.
Setup (Sync): clearer explanations of the timers and their effects.
Fix: a race condition when opening the Setup while a device changed.
Fix: the clock master was lost in the Setup after a change of its Windows device.
Fix: switching to Pause during a switch reopened the ASIO drivers.
Feature List
================================================================================
RateSync - FEATURES
================================================================================
CHANGES IN RATESYNC 1.0.0(031) - Compared with Build 27
--------------------------------------------------------------------------------
- Fix: after an ASIO device was switched off and on, its driver could report a
wrong rate (e.g. 32 kHz) and the device could not be switched. The driver is
now opened anew when needed (switch, "Sync now", device added or removed,
mode change, resume), without polling.
- Fix: several devices on one driver (e.g. UFX III and ADI-2 Pro on the
MADIface driver) are told apart by their Windows device ID (Setup, tab
"Devices", suggested automatically). A device switched off is detected, and a
rate change no longer switches the other device.
- A rate change no longer opens the drivers anew needlessly. The debug log
names RME devices added or removed.
- Cube: tooltips appear after a delay and no longer cover the line to be
clicked. The delay is adjustable in Setup: 1.0 - 3.0 s, default 1.5 s.
CHANGES IN RateSync 1.0.0(027) - Compared with Build 26
--------------------------------------------------------------------------------
- Review and rewrite of the documentation files (+README, +INSTALL, +FEATURES),
which were AI-generated in build 26.
FEATURES OF RATESYNC 1.0.0(027) - the first official release
--------------------------------------------------------------------------------
The main goal
* Automatic switching of the sample rate (SR) of ASIO and network devices
to the rate of a clock master (ASIO or network device) or a master clock.
* Supports all common sample rates (single, double, quad speed) from 44.1 to
192 kHz.
Reliability
* Sample rate switching happens reliably and as fast as possible, but by design
has a small, unavoidable delay, as the sample rates have to be queried and set
via ASIO drivers and the HTTP Remote of the network devices.
* A new SR only counts after 1 s without further change, so the devices do
not follow every intermediate rate change.
* Reliability in operation: all devices are set at once, then checked until
they run at the rate and are locked. If there is no lock, the device is shown
in red. An exception are network problems: then devices cannot be reached,
and thus their SR cannot be changed.
* Devices are rechecked every 5 s.
Devices
* Supports devices with ASIO drivers and RME network devices (12Mic, M-1620 Pro,
M-32 *, etc.).
* Sets the SR of network devices, or alternatively loads a user config which
has to include the proper SR.
Modes
* For network devices: a loaded preset is never changed
* Network devices are polled in the background
* Three modes: Auto, Manual, Pause
- Auto: every device not set to the rate of the master is set at once
- Manual: such a device is shown in red and set with a click on the master
- Pause: neither the clock master nor the devices are polled
* Mode switched by a click on the status line of the Cube
* Polling of single devices paused by a click on their line, e.g. while
switched off
Cube
* Clock master and all slaves at a glance, with rate and status: amber while
switching, red on problems
* Fully scalable via controls in the setup dialogue
* Can be placed freely on the desktop; its position is remembered
* Colours, size and opacity are configurable
* Random colour option
* The 16 custom colours of the Windows colour picker can be set with
Shift+click
* Mouse-over shows tooltips about the status
* Tray icon configurable
Setup dialogue
* Devices are selectable
* Clock master chosen from a list
* Clock slaves can be ticked to be in scope of this service
* Device order can be changed according to your own priority or liking
* Autodetection of network devices in the same subnet as the computer running
RateSync. Network devices in other subnets can be added by their IP address.
* Shows additional device information: serial number, firmware or driver
version, etc.
* Devices can get a custom name, which is displayed in the Cube
* Per network device and rate: two modes, either "rate set" or "load preset by
its name" from a drop-down list. This allows different settings or routings
per sample rate, e.g. because the number of channels changes at higher
sample rates (double, quad speed).
* Default timings are changeable (not recommended)
* Logging: the debug log can be switched on; size and rotation of the logs can
be configured
* Support: report of devices, settings and debug log, prepared for copy and
paste, e.g. for a forum post; serial numbers can be hidden. Option to save it
to a file. If the debug log is off, it offers to switch it on.
* Every tab with settings: restore application defaults, save and restore user
settings
Operation
* By clicking the Cube and using the hamburger and tray menu
* Settings and logs are stored in the user's profile, so that settings survive
software updates.
* At start-up, RateSync checks whether another copy is already running and
offers to end it, and whether the autostart entry needs to be updated to a
new path of the executable.
Code
* Main program, modules and reusable libraries
* Usage of classes to avoid global variables
* Build 1.0.0(039): 21 .ahk source files with 9,380 lines
4,909 lines of code (52 %), 3,945 comment (42 %), 526 blank (6 %).
A few pictures...
The "Cube"
The “Cube” shows the sample rate of the clock master and the state of each slave at a glance.
It can be placed freely on your desktop, e.g. below the Windows gadgets of GadgetPack.
If you power-off devices then they are shown in red. Click to this line/device to toggle probing (off/on).
By clicking "Auto" you can toggle between three modes: Auto | Manual | Pause (see also Setup -> Sync: Mode).
https://www.tonstudio-forum.de/file-download/2870/
Setup -> Devices
The setup dialogue for choosing the clock master and the slaves.
Slaves can be
- recording interfaces, which get the sample rate set through their ASIO driver
- network devices, which are set over the network
Network devices are found automatically if they are in the same LAN; others can be added by their IP address.
For each sample rate, you can choose whether the rate is set over the LAN or by loading one of the 15 user configs, which must be stored with that sample rate. “Set the rate” is the preferred default. By loading a user config, you will lose any other setting that you applied manually (routing, volume, phase, gain, etc.).
https://www.tonstudio-forum.de/file-download/2883/
https://www.tonstudio-forum.de/file-download/2878/