const track = midiFile.getTrack(0); track.addEvent(rmxl.MidiEvent.noteOff(60, 0)); // C4 note off track.removeEvent(0); // Remove the first event

Play back a MIDI file using the playMidiFile function: