text to midisysex
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?
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
Sign up
User registration is currently not allowed.