# Increase midi.sendSysex 256 bytes limit

**URL:** <https://forum.electra.one/t/increase-midi-sendsysex-256-bytes-limit/2483>\
**Category:** Ideas / Feature requests\
**Tags:** controller-firmware, lua\
**Created:** [October 21, 2023, 12:27pm UTC](https://forum.electra.one/t/increase-midi-sendsysex-256-bytes-limit/2483 "2023-10-21T12:27:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaltar](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/kaltar/32/1051_2.png) [@Kaltar](https://forum.electra.one/u/Kaltar)\
**Post date:** [October 21, 2023, 12:27pm UTC](https://forum.electra.one/t/increase-midi-sendsysex-256-bytes-limit/2483/1 "2023-10-21T12:27:57Z")

</div>

I spent hours trying to find what was I doing wrong with some sysex strings, until I went to the manual and read the note about the limitation.

I know there must be a reason for that, but could it ever be increased?

---

<div class="post-metadata">

**Author:** ![martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/martin/32/145_2.png) [@martin](https://forum.electra.one/u/martin)\
**Post date:** [October 25, 2023, 7:20am UTC](https://forum.electra.one/t/increase-midi-sendsysex-256-bytes-limit/2483/2 "2023-10-25T07:20:27Z")

</div>

Just to make sure. This is mk1 related. Is that correct?

The limit is there due to memory constraints. As I am backporting functionality from mk2 to mk1, this will be most likely resolved in upcoming update. When done, the limit will be amount of the free memory (for the lua table).

---

<div class="post-metadata">

**Author:** ![Kaltar](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/kaltar/32/1051_2.png) [@Kaltar](https://forum.electra.one/u/Kaltar)\
**Post date:** [October 25, 2023, 4:02pm UTC](https://forum.electra.one/t/increase-midi-sendsysex-256-bytes-limit/2483/3 "2023-10-25T16:02:12Z")

</div>

Thanks for the clarification Martin.  
Yes, mk1. The documentation says

> **midi.sendSysex (port, data)**
> 
> A function to send a Sysex MIDI message. Currently limited to 256 bytes.

There is no mention of being a limit to mk1.

It makes sense that the limit is due to memory. I think mk1 should keep a memory reserved to be at least the 256, to avoid any lua script using all the memory and not even being able to use the 256.
