libossia icon indicating copy to clipboard operation
libossia copied to clipboard

[ossia-max][ossia-pd] Range of two values in Pd / Max ?

Open jcelerier opened this issue 4 years ago • 1 comments

Hello, when using e.g. ossia.parameter objects we have the

@range -1 1 

syntax which says, "the value is between -1 and 1"

but

@range -1 1 2 

instead means "the value is either -1, 1, 2"

but it seems that there is no way to be able to say, "the value is either -1 or 1" ? How do you usually do ? shouldn't there be a kind of @set_of_values that would allow to say that ?

jcelerier avatar Jul 14 '21 09:07 jcelerier

yes I think an @enum attribute would be nice, but then we can't use it with @range I'll try to implement that

avilleret avatar Apr 07 '22 09:04 avilleret