Closed Meekohi closed 2 years ago
Read in a file with text events and immediately write it -- resulting file has no text events.
const fs = require('fs') const { Midi } = require('@tonejs/midi') const midiBuffer = fs.readFileSync("input.mid") const midi = new Midi(midiBuffer) fs.writeFileSync("output.mid", Buffer.from(midi.toArray()))
Note this isn't a problem with midi-file
midi-file
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Read in a file with text events and immediately write it -- resulting file has no text events.