Mapping parameter that change range on Live??

blackeye's icon

Hi everyone!

I have a question regarding mapping parameters in Live. I have a live.dial object inside my M4L device that update its range when a specific action is done. In particular it change the range when a folder is selected, and the max value become the number of files in the folder. The problem is that the initial range is set to 0-1 and if I want to map the parameter to a controller MIDI the range that the potentiometer can control is always 0-1, it doesn't update when a new folder is selected. How can I solve this?

Jeremy's icon

No can do. Parameter ranges are static for the device lifetime.

2K's icon

This is a workaround with some GUI tricks but not sure if it will suit your needs. The _param_range is fixed but what the user sees changes basically.

Max Patch
Copy patch and select New From Clipboard in Max.