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:
----------begin_max5_patcher---------- 337.3ocwT1sSCBCEG+5xSQy4ZjPYPXZ1M9bXVLEntUCzRfCwoK6cWZAzMCIV lIyaZSOe0+mebJG8HPl9fnEnOPehRHG8HDqIiAx3YBTwOjWxasgAptpLQC3O 3p+jtCKEn0Yzn0ZNluWp18biHGGJNKMMHzmFEcuYKIzrxVGDR2NlyPYv2qEC I.REB9THiq1AeE0KZE1J+vFCyTjAyxBq1zYudW5YRSplTF6r7U7Ja9viMRdI Xbbxyyr36JCDu0eUSWDJNXaRXyl4wB62wRXrYaUTPhKXYA3HYVbDcKvARYT4 0NnvVyVBQ7WLXh++lSJqCPNxogzzqcfgkL7NJ1s2QKfKrY4xJm3h8ZfRo5m+ Rw1HF6WBqVcWS9jNGmVoe2JEhVTp3nTqNKlzKhYurnPXcO0KUxhZceSOJA51 Y+v4phXNnn3aphhcPQI+AE0e3j2mygqYnB -----------end_max5_patcher-----------
There are lots more ways.
Hope this helps,
C74 RSS Feed | © Copyright Cycling '74