damu_89 The patch already uses about 35% of the CPU of my M1 Macbook air.
That's a whole lot of CPU. I'd say it's highly unlikely it will run on Bela. That's really unfortunate, because this sounds like a great project! This would probably be even more power than available on a Pi, really, unless you take advantage of the multiple cores there and try and split the load among them using the [pd~]
object!
On Bela there is a way to reduce the CPU usage of a Pd patch using the Heavy compiler. This supports only a subset of Pd objects (https://github.com/CarloCattano/hvcc/blob/master/docs/14.Supported_vanilla_objects.md) and can be even 10x as fast as regular vanilla Pd, depending on the patch. I am not sure that will bring the CPU usage into an acceptable range, but if you do not use externals or some fancier vanilla objects not included in the supported list, it may be worth a try.