Deviceparameter: No Info about enums and booleans?
Deviceparameter: No Info about enums and booleans?
Just to make sure I am not missing something: it is not possible to get textual information about the value of a deviceParameter in the LOM? Just a float? Really?
In https://cycling74.com/docs/max5/refpage ... eParameter I only see the float value. What about e.g. a deviceParameter to select filter type? Would be nice to be able to get the values BP, LP, HP. Right? Not possible?
In https://cycling74.com/docs/max5/refpage ... eParameter I only see the float value. What about e.g. a deviceParameter to select filter type? Would be nice to be able to get the values BP, LP, HP. Right? Not possible?
Re: Deviceparameter: No Info about enums and booleans?
I think 'str_for_value' might be what you are looking for.
I know it's not listed in the LOM, but it exists, and works.
Hope this helps!
Leigh
I know it's not listed in the LOM, but it exists, and works.
Hope this helps!
Leigh
Re: Deviceparameter: No Info about enums and booleans?
In a world like this, maybe there even exists a field which contains an array of all possible values?
Re: Deviceparameter: No Info about enums and booleans?
Ok, got it. Just to be complete here:
str_for_value is a function of the live.object. You have to send a message like "call str_for_value 3" to live.object if it is assigned to a deviceParameter and then you will get the name for that specific value.
str_for_value is a function of the live.object. You have to send a message like "call str_for_value 3" to live.object if it is assigned to a deviceParameter and then you will get the name for that specific value.
Re: Deviceparameter: No Info about enums and booleans?
Yes, indeed, I forgot to mention , it is a function call, not an observable parameter.wackazong wrote:Ok, got it. Just to be complete here:
str_for_value is a function of the live.object. You have to send a message like "call str_for_value 3" to live.object if it is assigned to a deviceParameter and then you will get the name for that specific value.
I, and others have used an live.observer to observe the 'value' of a device parameter, the output of which is used to trigger a call to the str_for_value function on a live.object.
Cheers,
Leigh
Re: Deviceparameter: No Info about enums and booleans?
Exactly, that's what I figured. Thanks!