Help : Change a control's name with Max MSP

Hi,

I’m trying to change a control’s name from Max/MSP.

From what I understand, I first need to convert the json text to integers, and include it in the sysex string.
So, to rename the control #1 to “Track 2”, according to the SysEx implementation | Electra One Documentation the raw midi message would be : 240 0 33 69 20 7 0 1 123 32 110 97 109 101 58 32 34 84 114 97 99 107 32 50 34 32 125 247
Am I right ?
Which port (Port1, Port2, CTRL) am I supposed to use ?

Thanks for the help !

It can be sent to any of the ports (Port1, Port2, CTRL), but it CTRL is kind of dedicated to that type of traffic.

I am not behind the computer but it seems that you have the msb and lsb bytes of the control id swapped. It should be:

240 0 33 69 20 7 1 0 123 ...

ie. control #1 is 1 0, not 0 1

1 Like

Thanks !
Still, struggling to make it work.
Any Max user here ? Here’s a basic code example :


----------begin_max5_patcher----------
859.3ocwW1zTiBCFG+b6mhLbXO00IIDJfG79deus53jRiZbgDlPpVGG+tuOI
PW2U4UKVmQIvCo7O+34svyKWDrQuWTEfNG8KzhEOubwBuImgEMWuHnfuOKmW
4mVPltnPnrAqpumUr25sauSftLv82MZCLn3EB3hsxJdYofa7lqzEBjQvqzJ3
bzOPh8k4xLoUj+D5QCLBOlBziR6cnKu7fF4RkHSuS4Eh0XrjaytSpt8ZiHyV
CvZb5Y3UHRB1OD4GVCGQW07iT6Jjpbg0iBownbqG.8l6+NKM30Yp2YOLUry3
KKW5Nr5HeQITaQ5aPUOUI1GzMLgT1YQqPgIz+AF5jfg84CSkkar+EGuONSqr
FcNhLB3hh9vvQmO3ThGgG46Xqjm8aDFg6iCFqF.+PThGCZWXPaACb6Xbf3ZS
1mJE0BFDftZ9Hzh1fx6CuXGPLRnmt3HmOqa7ZwKE1Q9DsK71vU2FrZlwzU.B
R5nr3dXkk38ggID2PLseWYarlbRbkEhpJ9sh2AIkAgpnvPz5THSBEiHvkDZH
jqgRoPjJhPvnTvNNE9mzXLJwMA3jD2DXtIj5terybD1cG3DBMZfWeMgJr35P
k0SNSHL9qLSnzHZhQd+awQDzzTGa85oG0D8kF07LzlsoWMLdNz29mFWYOJz5
9kgAmjV2wkFNc+M6j.dWMtfUROzgW6J0UWbmFM4lSjYbaDc445OvLrtlMIw6
eZ5uNE2C4KMc7aPHU7v8cS7MbYe.5lZVmzs4yODf6J1HLCiR8wgbTsEqw5uE
aI2.Y2Vg4ZghuI2CDtSm3plVvyoy7hKP85KSBe0WFN8BID7IyW1NeExsRPjA
aNFgq8zwS1Gm9ouWWtUKGQeNh2IQFJiKrkx8SzIkKqdiWxKk+aAey2q5WuN6
+O1U5clrCOtC60F85JdqnxJUbqTq9mI4p6AM8aO7XrJQFiR9kyQqTzXUBejJ
41J+fJ41D27nDYLJcru8baYeXlRmClhGgRyhPignn4PnwD4c3E7woDaLJMCB
QFiPuIiSa1Bs2cUxNARiaWZ76pRBew6CBSUyO2qJzF3dse5Iq7WJU0W5KVGX
DOHOLe+1CB3FnKfEZAry3WoA6WWuUifBMHrZmrAafWPReKF2GRTUxqQy2IZ4
KK+CQrboVC
-----------end_max5_patcher-----------

So, I’m still stuck. I think if you could provide me just one example of a complete sysex message that changes control #1’s name, I should managed to fully understand the formatting, and won’t bother any more.
Would it be possible ?

Hi @chapelierfou, we are all at the superbooth. I will get back to you when we are back.

1 Like

I understand. Have fun !

1 Like

This is an example of the name update of control #1.

Send this message to Electra’s usb CTRL port:
update-control-partial.syx (24 Bytes)

To make it easier you can use this preset:
Rename control.epr (481 Bytes)

The control in the preset is called “Fader 1”, after receiving the SysEx message it is changed to “Test”

Thanks !
Got it working finally !

Max code if anyone is interested :


----------begin_max5_patcher----------
905.3ocuXssiZqCE8Y3qvJ8nySoQ16su1G5WQeqyQUAvZZZIInDSKiFM+6ms
CPamhm1flPxC.YGKVds1Wcdb4hrUsG78Yr2w9HawhGWtXwfongEmteQVc4g0
aK6GVV1515ZeSHK+3yB9CgS1aBcsaey4GTsYvb6pu7Vq7rwl80s6Ca8gg+K9
Iq6JCq+bUy8epyuNbbuXUEbj6PDsbAncJLmAxBzJjzkRJbnPnxYZYgDAmSJs
RGWHAKsNdAm8e+Dwply.Jh1dZ4x3G4ijuzevJeWJVwy9w9uqr1G7cex2TtZq
+W41yYLbx5QSgG14OR2rrbV1pxl6y9wFOgn.Rn.zVNXzZDPt0oyYBqoPCVqR
I0ZqDzJQNSQR.IDvjJD9uSz9B+9tN+NeyFVuOjPjL1ztdwKJD+IA.wKiJDJW
gwQFTRKmyQTYxYFXt4eJtqlRtKL5BkfiBsAbJoR4hoDfnPKcRCHDFIH4hnyG
mcmOgLiStGl1QoeLSJ0Pd6UCh4T8AxHkLvovCgihOj54SNJW+URG3Inu91mH
.5BAJ4..nxZ3nNFKX+yjGlNx+uzNHkiW6tRlWQcWtVxq4WxcI+Fv8WpafY16
FjRFR0hbF6E792mN0WLwQ.wx6iIB.wYLBPal6HfWnHXgwfBZhHD.kUy0yZHP
ns+g5UsaSIP299gNrHF9CjBfRPfPj7lom70999x68Wv9Gu6t6xZHme762whe
9gtXSg+QD+8SoTE3lqJZnPBf1XLJEpTVjpJHP9r0YnLzVkf4pqMdXaUe35Yu
.oA.r.McrlCHnjn6u2a.mP1u6zHRoJMhla+TQNSAMeL0bViZG2IspYc.49G5
8GpZRPdXpaKnoIfnwgUJMcp.GUETlydqFKbzkkpIJhmQzPZhzMazutZSEwjD
z2c0mJNo+EQ2voBIVaLRA5HRKuhZdCqfxsZ982CvvFHZ+4jtuce25ytjy4wr
eBzFeenpoLT017KKxbZQIE1whT7LD+UjhoTudjryEmziBI6DfT7EVLS9oQEQ
HmBjDi.oAIV7ZQZTp2y2NscanQEi4z2dniGyJEzhWWzoar56qNOvLFjfo.IX
LHMI41iIOPMEHgiQ8bW.zwZ+zDJey20eZwCXPs19R6P7iMe31pli2hC214+V
040OzuJqriZVEnNU66F1WYGzGegOY0sTjXy9pSAiD6HHGZaFGTteW4QhLzcc
4SK+eXfRbvL
-----------end_max5_patcher-----------
1 Like

I’m wondering how fast I can send these sysexs to controls.
So far, I noticed that changing the name of 36 controls (1 full page) takes about 500ms, and during this time the unit gets “frozen” and will stop sending midi out (but will take to account the knob movement, resulting in a value jump when it “wakes up”).

Have you considered using lua on the E1 to change name of controls. I’ve done it for my bitwig Java extension. In bitwig (in Java) I convert a string to numbers of the characters, send them as sysex and converts them back to a string in lua on the E1 and sets controls names with the setName of controls.
You can see it here. The specific function starts at line 21.
It’s all done within a sysex callback.
My sysex msg i send also contains a sort of ID byte I use to direct it to the specific function on the E1 and a parameter index.
Might be a bit convoluted. I’m no programming wiz. Let me know if you have questions.

BTW this seems to function very fast. I send names and values for all controls and sees no noticeable freeze

1 Like

Thanks !
I’ll have to take some time to get this, but it seems super interesting.