Hi - after a little bit of head scratching I’m successfully using a Behringer Xtouch mini midi controller via companion and generic midi module to act as a simple controller for a Behringer Xair 12 as a very basic PA in a local community hall. I thought I’d write it up below in case others are looking for inspiration. I couldn’t easily get this into a forum post so have added a PDF below. In short,
- Make sure it’s in Mackie Control mode and connected correctly
- I set it up with Bitfocus companion buttons to do the actions and generic-midi triggers to press / rotate left/ rotate right the buttons. You could probably just link the actions to the triggers and ignore buttons in most instances, but it would be tricky to use feedbacks to light up the mute buttons if you don’t use buttons.
- I used Events / On variable change / Variable to watch / Last Message Received (generic-midi:lastMessage) => condition either generic-midi: CC or generic-midi: Note On depending on whether it was an encoder /knob (former) or button (latter)
- Encoders use CC messages (Value 65 or 1 depending on direction turned), Channel 1, Controller 16 -23 depending on the encoder, left to right). There are also other values if you turn them quicker but I chose to ignore them for this application.
- Midi buttons on first row are generic-midi: Note On. Channel 1, Velocity 127, Note numbers 90, 90, 40-45, left to right.
- Midi buttons on second row start at generic-midi: Note On. Channel 1, Velocity 127, Note 87,
- Feeding back encoder LED values is a bit tricky. Channel 1, Controller 48 (for far left) to 55 for encoder 8, Value between 33 and 42 for a fan effect. I used some code to set a variable which reflected the Xair channel level which I could then use in the midi command. Unfortunately it didn’t seem like I could use expressions when sending the midi value back to the device, but this is possible with the variable.
- Feeding back midi button status leds is easy. Set midi note at same one as sent to companion. Velocity 127 for lit, velocity 0 for unlit.
- I also set up a slightly ancient Hitachi CPX 705) projector to be controlled using this. Hex codes are in the PDF, and are here:
Projector on BEEF030600BAD2010000600100
Select HDMI: BEEF0306000ED2010000200300
Select component: BEEF030600AED1010000200500
Select video: BEEF0306006ED3010000200100
Projector off: BEEF0306002AD3010000600000
Xtouch mini bitfocus write up.pdf (241.0 KB)
Hopefully this will help someone! I’m sure that there are better ways of doing this, but it is working reliably.
Thanks
Matt