Linking an Index to a trigger


#1

If I have 4 buttons and want to link an index to each of them, index 0 1 2 4 to button 1 2 3 4, how would I achieve that?

Kind of like replace the radio 4 with 4 buttons:


#2

Ok I've found this, if anybody knows a better/more flexible solution let me know :slight_smile:


#3

i made it for you i think, check:

let me know if this is what you need :slight_smile:


#4

Nice thanks :slight_smile:


#5

should be good now:


#6

note that my object will only work for one button-press at a time. for multiple presses at a time it would be better to use the solution you posted earlier, because you could then also map multiple buttons pressed at once. maybe i will consider implementing this in my object, will have to think about it.


#7

wouldn't it be possible to add multiple button presses with logic/and?


#8

it is not hard to "see" multiple presses, and it is also not hard to implement for example: "output index 5" when first and fourth button are pressed. the question is about the logic i should use. for 8 inputs that would be 256 possible switch configurations :slight_smile:


#9

ok, i updated my object to incorporate multiple switches. check it out. 4 keysets are user definable. explained in my contribution post.