here’s a video of an generative harmony program i wrote in max/msp rendered on a yahama disklavier.
none of the material is pre-written, it’s all spontaneously generated. the algorithm works by connecting chords according to vertical and contrapunctal rules that i’ve specified.