I worked on the Emscripten / OF webMidi implementation, and made a patch.
First time I made the Emscripten / Pure Data stuff without ofxOfelia, but only with OF and ofxPd.

Its with the mscale and markov abstraction that is also from @ingox and @weightless.
https://forum.pdpatchrepo.info/topic/11722/mscale-transpose-notes-according-to-given-scale-and-root
https://forum.pdpatchrepo.info/topic/12147/midi-into-seq-and-markov-chains

Connect a midi keyboard to the website, create a markov chain and connect the website to a sound device (with midi).
Works not with Firefox and Safari, because they didnt implement webMidi...

https://webmidimarkov.handmadeproductions.de/

https://github.com/Jonathhhan/webMidiMarkov