writeTrackEvent encodes a single track event to binary data and puts it
into output.
If you want to encode using running status (meaning it leaves out the status
byte if this event's status byte is the same as the previous one), set
runningStatus to the previous event's status byte. Otherwise, set it to 0.
writeTrackEvent encodes a single track event to binary data and puts it into output.
If you want to encode using running status (meaning it leaves out the status byte if this event's status byte is the same as the previous one), set runningStatus to the previous event's status byte. Otherwise, set it to 0.