-
Hello there, I am trying to write a code to send sysex messages but I am having a bit of a struggle. For some reason creating a CtrlrMidiMessage makes the new version of CtrlrX crash. Does anybody have any suggestion why is that? This is my code:
The code from my old panel looks like:
The way I tested this in the new code, since I do not have all the other variables is to create midiString as being "F7 F7", just to give it something. I went on commenting everthying and what makes my code crash is exactly the function CtrlrMidiMessage for some reason (while it is ok in the old panel...) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
The difference between 5.6.26+ and the older 5.3.x ctrlr version is that midiMessage must be sent as a memoryBlock. The following code will cast a memoryblock from the message between parentheses (here from a LUA table) : Let me know if it works with this syntax 🤓 |
Beta Was this translation helpful? Give feedback.
For some reason that does not work and I need to take extra steps...
I had to break it down like this to make it work:
But yeah that was the issue, I don't know why I can't make it all in one line as you suggested (cause it makes sense from a coding point of view), but it is what it is.
There was also a typo in my code from a copy-paste I made in the for loop, but last night I was too sleepy to realize that too lol.
Thank you very much for the help!