I’ve seen that, and I attempted to replicate (ha, ha) it myself. It was fun! I was looking for something more stable, like for a recursive function, but wasn’t able to find a solution – yet.
But by “genetic algorithm” I mean one that creates Orca code from “parent” code by combining parts of successful parents, and doing this thousands of times over many generations. I don’t believe that this task could be accomplished within Orca itself. My student was planning to write code in Rust that would supervise the child program creation, and Orca to play what the children sound like.
I think there are too many issues to overcome. For one, we have to command-L the files so that Orca could use the trick I showed above to play the files one after another. And then if one of the Orca programs plays something, even if we can figure out how to detect that fact, I don’t see how we could flag that program from within Orca as a keeper.