Hi. I think the issue here is your idea of "a.i. and strict music theory" is the issue. Music theory is easier to learn (diatonic theory that is) and implement that getting A.I. to do the job for you. But the idea of strict music theory is holding you up. Play what you want. The rules of music theory are guidelines. Plus "western theory" is based on cadences built around the fourth, fifth and root.