# X-Touch (+Extender) MIDI Remote Script (MCU mode)

**URL:** <https://forums.steinberg.net/t/x-touch-extender-midi-remote-script-mcu-mode/831493>\
**Category:** Cubase\
**Tags:** midi-remote, shared-midi-remote\
**Created:** [February 1, 2023, 4:26pm UTC](https://forums.steinberg.net/t/x-touch-extender-midi-remote-script-mcu-mode/831493 "2023-02-01T16:26:40Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![bjoluc](https://dub1.discourse-cdn.com/steinberg/user_avatar/forums.steinberg.net/bjoluc/32/319477_2.png) [@bjoluc](https://forums.steinberg.net/u/bjoluc)\
**Post date:** [February 10, 2023, 12:51pm UTC](https://forums.steinberg.net/t/x-touch-extender-midi-remote-script-mcu-mode/831493/10 "2023-02-10T12:51:29Z")

</div>

@Darren.Jones Well, this is funny. I would never have expected this to work, but thinking about it, I guess the X-Touch One in MC mode just simulates a full MCU/X-Touch’s behavior to work with the Mackie Control protocol. Searching the forum, I found multiple users [struggling with this](https://forums.steinberg.net/t/787736) when writing MIDI Remote scripts.

Is the scribble strip colored? The full X-Touch in MC mode only accepts one joint SysEx message to send colors for all 8 displays, so I assume the X-Touch one “intelligently” maps the one channel to one of 8 “virtual” channels. There’s definitely some hacky magic involved 😃

> [@Darren.Jones](#):
>
> Any mode with multiple encoders being used

How do you assign encoders without the six Encoder Assign buttons? 😱 More magic! 🪄

> [@Darren.Jones](#):
>
> ~line 4083

Oh, the bundled script, so many lines? 🤦‍♂️ I guess most lines come from `corejs` polyfills. The original thing is [here](https://github.com/bjoluc/cubase-xtouch-midiremote/blob/d21110d554a52a8d92da69794e33aa03fd09758a/src/midi/MidiPorts.ts#L36-L49).

> [@Darren.Jones](#):
>
> Unfortunately I don’t have a ‘full’ X-touch to compare this to, so I can’t tell if that happens on the ‘supported’ hardware, but I’d suspect it does as they are both Mackie Control compatible? (or it could be an issue in the XT1).

It works with the X-Touch, but I really can’t explain why it wouldn’t work with the X-Touch one. The relevant code is [here](https://github.com/bjoluc/cubase-xtouch-midiremote/blob/d21110d554a52a8d92da69794e33aa03fd09758a/src/midi/index.ts#L303-L338).

> [@Darren.Jones](#):
>
> I’ve forked the code on github and will look to modify it to remove the unneeded code and try to get the format correct (although it’s only a cosmetic issue, I think it would be confusing for anyone else), but I’m not a JS developer and haven’t had much time to get started.

Assuming that the X-Touch One in MC mode is one very sneaky impostor, I fear there’s not much unneeded code in there, except for some buttons and button bindings 😅  
Maybe you can also enhance the [encoder assignments](https://github.com/bjoluc/cubase-xtouch-midiremote/blob/d21110d554a52a8d92da69794e33aa03fd09758a/src/mapping/encoders.ts#L184-L315) to better suit your needs.

Given you’re not used to JS development, you might need some help with the dev setup. If so, let me know (maybe via PM) and I’m happy to explain some things 👍

> [@Darren.Jones](#):
>
> Thanks again for this, it’s meant my XT1 has finally got dusted off and is being used!

Great news, more than happy to hear that!

---

_[View the full topic](https://forums.steinberg.net/t/x-touch-extender-midi-remote-script-mcu-mode/831493)._
