MidiWriterJS
MidiWriterJS copied to clipboard
How to "import" ?
I see the example is using require. Can't I use "import"?
You can. Maybe you need to add "type": "module"
to your package.json.
Hi @humbleCoder1990, yes you should be able to import
the package assuming your environment is configured for it.
import MidiWriter from 'midi-writer-js';