Show device parameter and value on controller display
Hi all, wondering if a more experienced script writer could help me with the following:
I would like to show the device name, parameter name and value on the display of my Launchkey mk4.
I’ve figured out what the sysex strings should look like and have integrated it in a reaction that listens to a controller knob. The code below works to a certain extent (device number is m1 and parameter number is m13).
The info is sent to the launchkey and displayed on the little screen. However, the reaction is triggered with every midi step of the controller knob. Any idea how I could avoid this? Especially the device name and parameter name should not be retriggered as long as the same midi message is being received. Also, somewhat related, the value is shown as a decimal number between 0 and 1: is it possible to send the value the way it is shown in Ableton (eg. EQ8 frequency in Ableton is ‘x Hz’, while the value sent is ‘0,xxxxxx’)?
Device = str(self.song().view.selected_track.devices[self.get_modifier_value(“m1”)].name)
Parameter = str(self.song().view.selected_track.devices[self.get_modifier_value(“m1”)].parameters[self.get_modifier_value(“m13”)].name)
Value = str(self.song().view.selected_track.devices[self.get_modifier_value(“m1”)].parameters[self.get_modifier_value(“m13”)].value*10)[:3]
self._send_midi((240, 0, 32, 41, 2, 19, 4, 33, 2, 247))
self._send_midi((240, 0, 32, 41, 2, 19, 6, 33, 0) + tuple(Device.encode(“ascii”)) + (247,))
self._send_midi((240, 0, 32, 41, 2, 19, 6, 33, 1) + tuple(Parameter.encode(“ascii”)) + (247,))
self._send_midi((240, 0, 32, 41, 2, 19, 6, 33, 2) + tuple(Value.encode(“ascii”)) + (247,))
self._send_midi((240, 0, 32, 41, 2, 19, 4, 33, 127, 247))
Hi shasta, I’m trying to the understand your script, that you put into a reaction. I wonder why you need sysex, So maybe I don’t get the whole thing together. I would like to display parameter names in my touch. OSC template. Would you please post your reaction here. That could help.
Thanks Martin, I know of stage control it seems comparable with touch OSC. So if you have any success with the script, let me know please.
The goal is receiving parameter names from devices.
Sign up
User registration is currently not allowed.
Hi Andy, maybe this OSC-template: https://openstagecontrol.discourse.group/t/ableton-livectrl/3725/2 gives some ideas. I use Ableton Live Standard, with a CSS script and Open Stage Control. And I’m working on an update with proper banking of device parameters etc. (written by Copilot). Regards, mj