Currently, note off rows only have the information that was originally there. Are you noticing unnecessary column data being left behind in your usage?
I mention it to you because the Note OFF does not need that data, nor the value of the instrument, nor the volume value, nor the panning value. Yes the delay value if necessary. But I think it’s better to leave the OFF Note clean of all these values.
If you want to keep that data, you may want to add an option to clean the note-OFF.For that, it is best to first clean the entire row and then add the note_value = 120