Random Max question involving 1's and 0's
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.
Does anyone know of an object that can do this?
Thanks for any help
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.
----------begin_max5_patcher---------- 472.3ocwV9saBBCEF+Z3onoWyLzJfxtaOGKlE9SG1En0.kLmFe2GsEmNUb.1 vtoUZKkuuemSO081VvX9VRED7L3Ufk0daKK0PxArZe1BVDsMIOpRsLXbsPvY PG8TahDIqorr2JIIB81fcm45.PgpN7OsfUsuBqtfxxIB01gZGjlp1bd7GOgv vSqjWKtbo5gDesgn+dv3HVFDrRN6AaaYiSO8RAopJJib768NmIpn6T6KB2H7 N8n24dD4p6V1kIw2vjt22jRovhJTRA9RIMJG1k8Mh0EjsJqAQCGFHjx+ZlLG OyefrX4+LJXjOajwUjfN5zBMOlOWRhtS8uAIBLFInLgQgwtbPVIudCvazTIP 0EL+9EDtAU7uMUviH+vYr4HBdVVN4uq5M1hddCrlmoiuBfKHd3gVsSWny2CG rqwFKxJ4gyibUPGbofHJ4.ru6XYiN4OvevY8HiUK3ZnnDALmxt7pekMji+aR UwqKSNtcsGIAmrRJoRPYQBZy+K3zZj2ie1hVSSSIp4OxrBZ5FdSfqUCcD1Lp jZBi.zjIofdHI+IERK6ghBFFiPnP48bgKT44dxV4uePghMuPwZcFblNCLhNQ 8PmSWHF0CxMsmL85yIyGPQMObv9arBA5QA -----------end_max5_patcher-----------
That little patch is perfect, thank you very much.
Also thanks for the advice, i won’t forget it.
as long as there are 0s and 1s involved into your computing issues, everything is okay.
when you ever see a 2 in your computer, there is something really really wrong.