ParentFull threadosnr·My team built something similar at a recent hackathon. It attempts to automatically do this to an arbitrary WAV file (break up into waveforms) and generate a new piece of music: https://github.com/osnr/markov-musicView on HN