text to midisysex

162 viewsCSS QuestionsmidiSysEx text
0

Hi, i am building a script that will act with touchOSC via midi.

And i would like to send the name of a parameter from ableton when it was changed.

So i add a listener:

self.song().tracks[0].devices[0].parameters[1].add_name_listener

and my action would be:

self._send_midi(X)

where X should be some kind of transformation from:

self.song().tracks[0].devices[0].parameters[1].name

that should be a text, like “LFO” into:

into midiSysEX.

Can you suggest a solution for this reaction?

MartinJ Answered question June 17, 2024
1

Hi,

I suggest you have to transform the string of the name in a tuple of integers.

Let “pname” be the name-string of the parameter

n_char = len(pname)

text = []

for i in range(n_char): text.append(ord(pname[i]))

text = tuple(text)

may be the text integers tuple must be closed by a Zero, depends on the Sysex command definition of your controller.

Dieter

HDV Answered question June 16, 2024
You are viewing 1 out of 3 answers, click here to view all answers.