Setting attributes to Live objects with thispatcher.

Voorjeweetmaarnooit's icon

Hello all,
First of all, sorry for all the questions. M4L can be a tad confusing every now and then.

I've noticed it's not possible to change certain attributes (Minimum / Maximum) to live objects like the live.dial. However, it should be possible to set these at the start, no?
I'm using the patcher method in Javascript to create live.dials and other objects, and would like to set these. Normally I'd set the attributes with the attribute name using newdefault, but since the attribute names are hidden I can't access these.
How would I create a live.dial with a certain maximum from javascript?

With kind regards,
Mathijs.

Bjorn Vayner's icon

Live.dial and all the other objects that can be automated and controlled by MIDI in Live do not have a dynamic range.
Once a device is initialized, the fixed ranges are used for things like Clip Automation. You can't change the range.

Voorjeweetmaarnooit's icon

I know they're not dynamic, but that's why I'm asking how I can set the range BEFORE creation. The objects are dynamically created, and after creation the range does not need to be changed. Except using newobject and newdefault I can only seem to create dials and other live objects with a 127 range.
Basically I'm looking into how to do;

patcher.newdefault(83, 198, "live.dial", "@minimum", -10, "@maximum", 10);

The range is not altered, just set at creation.

EarHax's icon

Came across this thread after I found an answer to this issue here: https://cycling74.com/forums/what-is-this-message-_parameter_-about-max-for-live-ui-objects-2
Here's an example patch:

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