This is a demonstration video of FL Studio's "Riff Generator" being re-purposed to follow music theory.
FL Studio "Loop Talk" discussion thread:
https://forum.image-line.com/viewtopic.php?f=100&t=199703&p=1372400#p1372400
https://sites.google.com/site/jwpsite