chrisguttandin / json-midi-encoder

This module encodes a JSON representation of MIDI data into a binary MIDI file.
MIT License
41 stars 4 forks source link

Support for Node #376

Open wileymc opened 9 months ago

wileymc commented 9 months ago

This is an awesome library but would be great to have support to run this in a Node environment. I'm not sure what that implementation would look like but with a bit of direction I could take a shot at it.

chrisguttandin commented 8 months ago

Hi @wileymc,

this has been requested many times. And so far I always said that it is no problem in theory but a little complex because the browser version uses a Web Worker.

But Worker threads are now supported in all maintained Node.js versions and they are quite similar. I think a first step would be to make the internally used helper packages broker-factory and worker-factory work with the worker implementation available in Node.js. Once that is done it is probably only a matter of publishing a version for Node.js.