While the script started off harmonizing a melody to a 1-3-5 chord formula, now it harmonizes up to 5 chord formulas but randomly so it's improvising on chord formulas.
In this demo I muted the melody and like how it sounds without the melody.
This demo isn't etched in stone either, I can further develop this.
What this script does is give me a cool starting point.
iMac 10.8.5 2.8 GHz Intel Core 2 Duo 4GB Ram - Logic 9.1.8 (1700.67) (32-bit)
MacBook Pro 10.8.5 2.2 GHz Intel Core 2 Duo 6GB Ram - Logic Pro X (10.2)
MacMini 10.13.6 2GHz Intel Core i7 16GB Ram - GarageBand 10.4.5 Logic Pro X (10.4.1)
iPad Mini iOS 12 - iOS GarageBand 2.0.1
Qosimo X70-A 10.9.5 Intel® Core™ i7-4700MQ Processor 32GB DDR3L 1600MHz memory, 2-500GB 7200rpm hard drives - Logic Pro X (10.0.7)