Started work on the reading of the file.
Created all the helper functions for reading from a file and implemented the header reading and reading from the file stream in general. Currently the header is correctly reproduced upon rewriting, but the track is not yet reproduced correctly.
Did a lot of work regarding the reading of the file. THe interface has
now slightly changed, which will be more clean and neat. There is
unfortunately one point that is not so clear, and the code should be
reviewed and revised. The track is read now, the only thing that needs
to be done now is reading of the individual bytes and the reading part
will also be done. This will mark a milestone and will mark that the
library is ready for a release, after some revisions of course.
Implemented the creation of normal midi messages, everything works from
the copying point of view and the read and rewritten file now plays
correctly. Still throws an exception, because the other two events are
not yet implemented and a midi track contains an EOT.
Fixed the reading of files, which are now properly written again. Has made writing a file slightly more complicated, since users will have to write things such as EOT themselves, maybe something for a future fix that it can be omitted. Otherwise, SysEx reading is not implemented yet but will be very soon, however it should not matter much or be too difficult. Midi file now succesfully duplicates and writes to the file correctly.