Show device parameter and value on controller display

1.19K viewsCSS Community ScriptsDisplay launchkey sysex
0

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))

shasta0_6 Answered question
0

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.

andylutter Posted new comment

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

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.

0

Hi Andy, the script is specific for the Novation Mk4 controllers. These only listen to Sysex commands for the things that I wanted it to do. So this is probably not relevant or useful for your case. I am not knowledgeable about Touch OSC, so I am afraid I can’t help you with that.

shasta0_6 Answered question
0

Hi shasta and thank you for Your Answer.

In fact, I am using Not only touch OSC but also a Launchkey Mk4 myself. Thats why I am asking, if you would publish your script in the CSS Format. In Return I Can give you an insight on my touch Osc  Template which is my special iPad Controller.

andylutter Answered question
0

Hi Andy, attached is a simple script: knobs 1 and 2 (cc 21 and 22) of the Launchkey control parameters 1 and 2 of the selected device and the info is sent to the display of the LK. In this case it’s a LK with standard keys. If you have the version with the mini keys you need to change LK_model in the two reactions from 20 to 19 (and the new Launch Control is 21).

The last reaction puts some pretty colours on the pads.

Hope it’s useful

shasta0_6 Answered question
Attached Files: