Just wondering if anyone knows of an object that can create a preference for one value over another if both values are received at the same time.
A constant stream of 0’s are being banged by a metro and these are stored in a zl group. However, every now and then a 1 will be banged at the same time as a 0. I need the zl group to ignore the 0 if this happens and store the 1 instead. The stream of 0’s needs to stay constant.
You should bear in mind that nothing in Max happens ‘at the same time’. There is order to all events. In the below patcher, on each metro bang, the contents of int is sent, and then it is set to 0. By sending a 1 to int, we can replace the 0 that will next be sent.
-- Pasted Max Patch, click to expand. --
Copy all of the following text. Then, in Max, select New From Clipboard.