I can't imagine how you came up with this code! I ported this code to Csound, though the sound is a bit different. I also found that the result of modulo operation is different between Pd and Csound when the numbers are not integer.
SwissGL Demo: Particle Lenia with alien SOUNDS!
Audio is fully rendered on GPU with GLSL shaders and streamed to WebAudio thanks to the new async GPU->CPU read feature.
LIVE DEMO: https://t.co/juOVaF7gaS Press "toggleAudio" in settings for sound
4K YouTube version: https://t.co/1Qk0bJWJZU
Source code: https://t.co/SXnLZvS5ki