Getting the real value of the VST parameter for live.dial object
Hi,
When I click configure in the plugin and select a few parameters they are displayed in the correct format, but when I assign them a macro, Ableton displays it as a value between 0 and 127.
How can I get the real value of a VST parameters?
For example: strings (for switching plugin modes), or hertz (for eq) instead of the standard 0-127 value.
Thanks!
In the LOM > DeviceParameter, you need to get "is_quantized" to see if it's an enum or float type. Then use the value_items property (for enum types). For float types, you can use the function str_for_value <valuefloat> to get the string value OR __str__ to get the current value string.
Note that this only works if your DeviceParameter is the VST param itself, not a Macro knob in a DeviceRack. Also, the type for DeviceParameters is different depending on whether the plugin format is VST2 vs. VST3 vs. AU. VST2 I think never returns "is_quantized" as 1.