It is not the best at outputting coherent melody, but it is far more human-like and comprehendible than any fully random-generated as well as most commercial AI.
Designed to be used as an add-on to my Virtual String Instrument project's exported "recordings": https://scratch.mit.edu/projects/1086142387/ Once this imitator outputs the new list, import it to the instrument and play to see if you like the auto-imitation.