lokki/math/triggerindex 4 & 8 & 16
takes trigger inputs and outputs an index accordingly, index can be latching or momentary. only one switch at a time.
more robust implementation, now also more then one trigger at a time can be processed. there are 4 user definable switch combinations, that will trigger index 5 to 8. also there is now an enc output, which is esentially the four triggers encoded into one 4-bit value (like the encode object in the library)
best is to connect the triggers and look at the numbers displayed in the lower right corner of the object. these are the values you enter into c1-c4 for your switch combinations. an example:
if you want to trigger index 5 by pressing b1 and b2 you would need to set c1 to 3. (since that is what is displayed for pressing the first two switches)
3 in binary is 0011, which is the same as the two first switches pressed