An open Overbridge protocol implementation proof of concept.
For a working and actively developed Overbridge<->JACK bridge, please see: https://github.com/dagargo/overwitch
Dumps all channels to a multi-channel WAV file.
It will try both PIDs (first Digitakt, then Digitone) during USB init and use the first available one. So it should work now on both devices.
Note that everything is tested with a Digitakt, running OS 1.11_BETA6!
Most certainly other Overbridge-enabled devices won't work out of the box without modifications. See source for details.
(needs cmake, libusb, libsndfile. CDT project files are also in the repo)
mkdir build
cd build
cmake ../ -DCMAKE_BUILD_TYPE=Release
make
On Mac OS X you might need to set env variable: PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
Note You have to configure the routing accordingly as in the picture below. This is not the default setting! It is likely that the data format, number of channels etc. differ without changing this, and dtdump will fail (since everything is hard coded so far).
Just run ./dtdump
. It will dump the stream to dtdump-<time stamp>.wav
(12 channels, 32 Bit integer, 48kHz srate) until you press Ctrl-C.
New: Record to 12 mono files with ./dtdump -s
The USB transfer thread tries to grab the highest possible real-time priority. Unless configured to do so, this is usually only allowed for the root user. See also http://jackaudio.org/faq/linux_rt_config.html
On Mac OS X, the following works to reduce Xruns:
sudo nice -n -20 ./dtdump
To access the Digitakt as non-root user, a udev file is provided in /udev.
install deps: sudo apt install libsndfile1-dev libusb-1.0-0-dev cmake build-essential git
Has to be run as root in default Raspbian (lite) installation.
About 2.3MB/s, a class 10 SD card is OK on a Rpi3.
Thanks to Jeremy Pepper for the awesome Message queue
LICENSE: MIT
Stefan Rehm, 2019 droelfdroelf ( at ) gmail.com