Controlling the AR programatically? [MIDI] Linux

Hi there I run linux and I would like to control the AR with midi controllers from my DAW. So I would like to have a go at making a vst plugin like overbridge that can control and automate the AR, my first idea was to use the midi mode, but I’m not sure if it outputs midi when you change kit or when you twist knobs so my faders can reposition. I’m new to elektron gear, but read about overwitch, does anybody know if the same can be done for controlling the parameters or if the AR sends back midi when you change stuff?

I’d like to ask first before diving in and wasting time :wink:

Thanks

Owerwitch developer here.

AFAIK, there are 3 possible approaches here.

  1. Use your AR in MIDI mode and use the standard MIDI infrastructure, drivers and libs. This will be limited to the MIDI messages sent and received by the device. You can search for the recognized messages and create a small interface to send and receive data. This could be useful for everyone using the AR in MIDI or Overbridge mode. So far, pretty obvious. Keep reading.

  2. Use your AR in Overbridge mode and use the Overwitch library to get the MIDI messages, audio and the Overbridge protocol data. I won’t suggest using the Overwitch library as you’ll need to write a lot of code to synchronize everything and you’ll probably are already using JACK or PipeWire (same protocol).

  3. Maybe, we can work together. It wouldn’t be complicated for me to add another MIDI port to the JACK plugin for you to access the Overbridge protocol data. If this is done, you’ll have the MIDI data, and the Overbridge data, and the audio data will be available too. If we go this route, you can develop whatever you want using the standard libs and tools and your code will be totally independent from Overwitch.

If you think the 3rd approach is good for you, create an issue in GitHub and we’ll discuss the technical stuff there.

Sorry for replying here, but I didn’t want to clutter the gh issue.

I would like to go route 3, but I have an mk1, on the latest firmware. So we’d first have to get overwitch working on it. If you help me I can do testing etc. My C skills are barely existent. I was planning on making the vst with nih-plug in rust. Do you know if the overbridge protocol data is the same on the mki? I read the issue on github so I know abt the isochronous issue.

It’s perfect because there are other things to consider first.

ATM, together with another @personnealienee , we’re adding limited Overbridge support to AR MKI.
For some reason I understood that we were talking about the MKII. Sorry for being misleading here.

Absolutely. If you want to give it a try, checkout the mki branch. I’m on the #elektron channel on irc.esper.net (IRC) if you need some help.

Regarding the data, these are the Overbridge packet details known so far. There are 28 unknown bytes in each and this is what is believed to be the internal protocol. This is what I was thinking to provide via another MIDI ports for you or anyone to access it in the way you like.

We don’t even know exactly what data is going on there but some messages look like MIDI and I’ll bet that the protocol is the same for MKI devices.

I’ll post some detailed packet data later.

In case anyone is interested, I took a look at the unknown bytes and noticed that can be easily arranged in blocks of 128 bytes. This is a block from my Digitakt.

e0 00 23 aa ea 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 01 00 00  00 00 00 00 00 00 00 32
00 00 32 00 00 32 00 00  32 00 00 32 00 00 32 00
00 32 00 00 32 00 00 32  00 00 32 00 00 32 00 00
32 00 00 32 00 00 00 00  00 00 00 00 00 00 00 ef
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 

I’ve created an issue to keep track of the findings.