Companion Pi Midi Out problems

Hi - I’ve got midi inputs working great - my use case is to use a Behringer Xtouch Mini midi controller in MCU mode to mute / unmute using buttons, and control levels using the rotary encoders. I now need to get the button status and levels to the device. I’ve tried the usual steps and I can’t seem to get Companion Pi to output any midi at all.

The logs show the following within companion, which look ok.

info: Selected In  Port "X-TOUCH MINI:X-TOUCH MINI MIDI 1 16:0" is Open.
info: Selected Out Port "Midi Through:Midi Through Port-0 14:0" is Open.
system: Status: disconnected - null
system: Status: ok - null

Entering *main*

debug: Sending:  noteon Message, channel: 1 (0x01), note: 8 (0x08), velocity: 127 (0x7f) to "Midi Through:Midi Through Port-0 14:0"

But aseqdump midi monitor shows nothing, and nothing lights up when I send the command. I then tried to loopback via a virtual midi port and this isn’t showing anything in aseqdump.

info: Selected In  Port "X-TOUCH MINI:X-TOUCH MINI MIDI 1 16:0" is Open.
info: Selected Out Port "Virtual Raw MIDI 3-3:VirMIDI 3-3 31:0" is Open.
system: Status: disconnected - null
system: Status: ok - null

Entering *main*

debug: Sending:  noteon Message, channel: 1 (0x01), note: 8 (0x08), velocity: 127 (0x7f) to "Virtual Raw MIDI 3-3:VirMIDI 3-3 31:0"

When I select aseqdump as the output interestingly it does display though.

Waiting for data at port 151:0. Press Ctrl+C to end.
Source  Event                  Ch  Data
  0:1   Port subscribed            162:0 -> 151:0
162:0   Note on                 0, note 8, velocity 127

I just tried a fresh install on a completely different CM5 module, and still not working. Has anyone managed to solve this, or do you have any ideas what could be causing this? It seems that the midi isn’t making it out of Companion to the device.

Hi - after a bit of problem solving, I linked midi through to the behringer controller via aconnect 14:0 16:0 and it is now working (although not strictly sure that was what fixed it). It still doesn’t show through aseqdump but there are other ways to get midi out which don’t use that so that is understandable.

The documentation around lighting up buttons and LED rings is a bit lacking but to light button 1 up, you need to send noteon Message, channel: 1 (0x01), note: 89 (0x59), velocity: 127 (0x7f) to "X-TOUCH MINI:X-TOUCH MINI MIDI 1 16:0"

To set the LED rings, it is a bit more involved as the different types of display (single, fan etc) are different ranges of the same CC note. 0=OFF, 1–11=SINGLE, 17–27=TRIM, 33–43=FAN, 49–54=SPREAD. So if you want to set encoder 1 in fan mode to fully lit you would send: cc Message, channel: 1 (0x01), controller: 48 (0x30), value: 43 (0x2b) to "X-TOUCH MINI:X-TOUCH MINI MIDI 1 16:0". Swap the value 43 to value 33 to show the ring as not lit at all.

Where are you trying to send MIDI FROM Companion TO?

If you’re trying to send it to the X-Touch, you’ll need to select the X-Touch MIDI input for as the OUTPUT in Companion.

Hi Andy

Thanks for your reply. I had selected the Xair as both midi in / out but I think something else was causing commands to not get through. Either way, per my second message it appears to be working now after a reboot!

Best,

Matt