It took me 2 hours roughly, to write the code in JS from scratch, for a simple sequencer doing beats and generative chords inspired by the embroidery machine.
My very first generative tracks! Nothing of any artistic value here, it was just exciting to try something new, and to acknowledge my hopeless reluctancy to do anything other than with code. It's amazing though how much music relates to graphic [generative] art. There are rules, structure, layers, rhythm, harmonies, textures, controlled randomness. Even if I can't play, I can understand and appreciate the maths behind it.
zancan.art/ZMusic/
It's very very raw. Make sure to reload the page before pushing buttons otherwise the tracks pile up.