🔥 Lifetime deal! Get Control Surface Studio for Just £67 👉 Click Here To Get It
Time left... mailtimers.com
⚠️ Lifetime licenses are ending soon, get yours before they're gone ⚠️
Your shopping cart is empty.

Reaction based on a device parameter's current value

Submitted by formantzero on Fri, 10/20/2023 - 04:08
formantzero
Control Surface Studio User

Hi. I'm new to CSS. I am trying to add a reaction so that whenever my selected track's selected device has a change in parameter 17, it reads the new value and does something conditionally based on that. I have a VST where some of its parameters have been "configured", so that "Model" is parameter 17, and it has several types: Multimode, Cascade, Ladder, BITE, etc.

I want to send a different LED colour to the control based on the value.

The problem is, I can't even get a listener to fire a log message when the device's parameter 17 is changed. I even tried parameter 1, nothing.

These are the things I'm using:

Device Parameter's value value has changed
----> self.song().appointed_device.parameters[16].add_value_listener

do this....

self.show_message(str("Selected track blue hand selected device parameter 17 changed"))

And do this...

self.log_message(str(self.song().appointed_device.parameters[16].value))

But no matter what I do, neither the log.txt line nor the status line messages fire. I have tried this out with something simpler like selected track's SOLO status changed, and those work. I can't figure out how to get it to react to a change in the value of the parameter. Isn't that what add_value_listener does?

Topic Category: 

0 Responses