-
Hello. I recently started studying MIDI messages and Fluidsynth.
The header chunk of the MIDI file is read through the function fluid_midi_file_read_mthd. The below is how I understand the code about the time division, when the MSB equals 0.
But I can't really understand the code for the number of tracks.
I understand that due to the below lines in the fluid_player_add_track function, ntracks value larger than 127 won't be used in other part of the code and ntracks value smaller than 128 will be converted to the unsigned integer as intended.
Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Because it's a bug in 20 year old legacy code. And it doesn't make a difference, because of the |
Beta Was this translation helpful? Give feedback.
Because it's a bug in 20 year old legacy code. And it doesn't make a difference, because of the
MAX_NUMBER_OF_TRACKS
check you've correctly pointed out. Yet, you're welcome to draft a PR.