Thanks! I found WebAssembly to be a joy to use. I mainly interacted with Emscripten and it worked great. One thing is that by default it produces a bundle with more JS that you probably need if you just expect the code to run in the browser. You can see what build flags I used to make the built JS super small:
https://github.com/feross/timidity/blob/master/tools/build.s...Hope this helps!