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: google.github.io/swissgl/#Fa… Press "toggleAudio" in settings for sound
4K YouTube version: youtu.be/XsoM_nxk4Xw
Source code: github.com/google/swissgl/bl…