1 (edited by bluetail 2024-10-16 18:26:46)

Topic: How to switch PH/LINE from MIDI command?

Hello everybody. I have sent an Mail to support@rme-audio.com, but have not received a confirmation mail, so I suspect mail is not working for me.

Therefore, heres my request in forums:

Device: RME ADI 2 DAC FS
0x71 would be the DEVICE ID.

Works: To set -60db VOL go to amidi -p hw:1,0,0 -S “F0 00 20 0D 71 02 1B 1A 71 F7”

But when I read through the documentation I don't quite understand it.

For example, I recorded MIDI for when I switch PH to LINE and got
“F0 00 20 0D 71 07 09 30 7E 08 01 00 00 02 00 00 02 02 00 00 00 F7”

And one 08 changed to 09, so I thought this must be it, if I send that, it would toggle.
So what would I have to send?
Because amidi -p hw:1,0,0 -S “F0 00 20 0D 71 07 09 30 7E 08 01 00 00 02 00 00 02 02 00 00 00 F7” wouldn't have an effect.

And vice versa back to PH
I already looked into https://github.com/n00bmax/RMEdiy which does not appear to have that function either.
And I made my own tool for use with a Broadlink RM4 Universal control.

But I want to get rid of it and just use MIDI.
So, what should I send to the device?

2 (edited by waedi 2024-10-16 18:41:23)

Re: How to switch PH/LINE from MIDI command?

Unclear what you try to do and what you did.

...when you read through the documentation...
What documentation ? Wich page ?

...you recorded Midi...
From where ? From the ADI-2 unit ? Or from the Remote software ?

In the user manual of the Adi-2 I can't find anything about Midi, there is this dedicated software ADI-2 remote 2.0, are you speaking of this ?

M1-Sequoia, Madiface Pro, Digiface USB, Babyface silver and blue

3 (edited by bluetail 2024-10-16 18:48:15)

Re: How to switch PH/LINE from MIDI command?

waedi wrote:

Unclear what you try to do and what you did.

...when you read through the documentation...
What documentation ? Wich page ?

...you recorded Midi...
From where ? From the ADI-2 unit ? Or from the Remote software ?

In the user manual of the Adi-2 I can't find anything about Midi, there is this dedicated software remote, are you speaking of this ?


And to LISTEN / RECORD for MIDI, you need to define port. E.g via `amidi -p hw:3,0,0 -d`
Nope. RME released MIDI spec.
You can find it here https://www.rme-audio.de/downloads/adi2 … otocol.zip

We want to use MIDI to remote control the ADI 2 DAC FS and similar devices, but so far we cannot seem to switch from PHONE to LINE via MIDI.

You can basically use your command line, or other things to control your interface like you do with ADI2REMOTE.

BUT it is really better if I know how to toggle between PH/LINE via CLI so that I don't need to click there running ADI2REMOTE in wine.

Re: How to switch PH/LINE from MIDI command?

The remote has a function you can click to do this switching ?
Did you record the Midi from there ?

M1-Sequoia, Madiface Pro, Digiface USB, Babyface silver and blue

5 (edited by bluetail 2024-10-16 19:01:50)

Re: How to switch PH/LINE from MIDI command?

waedi wrote:

The remote has a function you can click to do this switching ?
Did you record the Midi from there ?

No, because I can't. If ADI2-Remote has the port opened, I cannot record that.
And I don't know how I could.
Instead, I started to listen, then use my remote to switch from Line to PH and observed the change!

E.g `amidi -p hw:3,0,0 -d`

...

F0 00 20 0D 71 07 08 30 7E 08 01 00 00 02 00 00 02 02 00 00 F7
F0 00 20 0D 71 07 08 30 7E 08 01 00 00 02 00 00 02 02 00 00 F7
F0 00 20 0D 71 01 1B 60 01 F7
F0 00 20 0D 71 07 08 30 7E 08 01 00 00 02 00 00 02 02 00 00 F7

right here ^ v

F0 00 20 0D 71 07 09 30 7E 08 01 00 00 02 00 00 02 02 00 00 F7
F0 00 20 0D 71 07 09 30 7E 08 01 00 00 02 00 00 02 02 00 00 F7

You see it, right? And each line is being one of the status commands the devices sends me.

Re: How to switch PH/LINE from MIDI command?

How you could record the Midi communication ?
On Mac : http://www.snoize.com/MIDIMonitor/

A free tool to monitor (record) all Midi transfer in the computer.
A must-have for Midi people.

M1-Sequoia, Madiface Pro, Digiface USB, Babyface silver and blue

7 (edited by bluetail 2024-10-16 19:07:52)

Re: How to switch PH/LINE from MIDI command?

waedi wrote:

How you could record the Midi communication ?
On Mac : http://www.snoize.com/MIDIMonitor/

A free tool to monitor (record) all Midi transfer in the computer.
A must-have for Midi people.

No, you misunderstand!

ADI2REMOTE Exclusively opens the port!
To intercept ADI2REMOTE you need to somehow tell ADI2REMOTE to open a dummy port that records and duplicates its output to the real ADI2.
I am on Linux, but these commands also work on mac.

This may be something only RME Support can answer.

8 (edited by waedi 2024-10-16 19:10:15)

Re: How to switch PH/LINE from MIDI command?

Midi Monitor is monitoring every port.
No worry they will answer, be patient.

M1-Sequoia, Madiface Pro, Digiface USB, Babyface silver and blue

Re: How to switch PH/LINE from MIDI command?

waedi wrote:

Midi Monitor is monitoring every port.

I guess then I need to try again, on Linux, with a comparable software.

Re: How to switch PH/LINE from MIDI command?

Oh my bad, I thought you are on mac.

M1-Sequoia, Madiface Pro, Digiface USB, Babyface silver and blue

Re: How to switch PH/LINE from MIDI command?

waedi wrote:

Oh my bad, I thought you are on mac.

So I did record the MIDI connection now with kmidimon while I was using ADI-2 Remote to toggle PH/LINE.

But I diddn't get something interesting, can you see any difference here?

https://0x0.st/XIm3.png

Re: How to switch PH/LINE from MIDI command?

No, I think this was not helpful

M1-Sequoia, Madiface Pro, Digiface USB, Babyface silver and blue

13 (edited by bluetail 2024-10-16 19:41:03)

Re: How to switch PH/LINE from MIDI command?

waedi wrote:

No, I think this was not helpful

Actually I had to subscribe to wine midi port, now I get something interesting!

https://0x0.st/XImD.png

YAY.
You fixed my issue big_smile

So, amidi -p hw:3,0,0 -S "F0 00 20 0D 71 02 67 70 01 F7" does do the switch for me from PH to line and in reverse.
It does the toggle!

Now, I need to somehow expose this information ( maybe on Github) so others know

Re: How to switch PH/LINE from MIDI command?

Wonderful !
Ah "wine" I overlooked this, it means you run a Windows emulation for the ADI-2 remote and Linux need a bridge for the Midi ports ?

Glad you solved the task.
And yes of course share it.

M1-Sequoia, Madiface Pro, Digiface USB, Babyface silver and blue

Re: How to switch PH/LINE from MIDI command?

waedi wrote:

Wonderful !
Ah "wine" I overlooked this, it means you run a Windows emulation for the ADI-2 remote and Linux need a bridge for the Midi ports ?

Glad you solved the task.
And yes of course share it.

Wine does the bridge automatically.
ADI2REMOTE works via Wine without any mods whatsoever
I just needed the command to toggle which we captured smile

Re: How to switch PH/LINE from MIDI command?

Great information, very interesting.
Thank you very much for sharing!