lp.tata-how to exclude

Jun 4, 2008 at 7:11am

lp.tata-how to exclude

I

#38231
Jun 4, 2008 at 11:33am

There are lots of ways to do this, each having a slightly different color.

Brute force would be to add gates in front of all the triggers; put a bangbang in front of the main lp.tata, the rightmost bang would open all the gates, the leftmost bang would trigger tata. As soon as one trigger is activated, it would also close all the gates to its left.

Another way would be to use tata to generate values with only a single bit set. You can use a [lp.tata 0 31] connected to a bit shift operator, something like this:

– Pasted Max Patch, click to expand. –

There are lots more ways.

Hope this helps,
Peter

#132993

You must be logged in to reply to this topic.