If folks remember Ballblazer by Lucasfilm Games, Russ Lieblich wrote a music player that would string together riffs like weird chiptune jazz solos. The walking bass was the best part. It was constrained by the template but could come up with some surprising harmonies.