grimmdude / MidiWriterJS

♬ A JavaScript library which provides an API for programmatically generating and creating expressive multi-track MIDI files and JSON.
MIT License
547 stars 58 forks source link

Support manually adding EndTrackEvent with custom delta. #107

Closed grimmdude closed 1 year ago

grimmdude commented 1 year ago

Usually EndTrackEvent is automatically added when the MIDI data is built. With these changes, it can be explicitly added with a custom delta value.

track.addEvent(new MidiWriter.EndTrackEvent({delta: 128}));

Closes #84