RDMID is a public domain standard MIDI file parser by Pieter Suurmond.
It is based on the original 'midifilelib' and 'midifile' written by
Tim Thompson, Michael Czeiszperger and Andrew Arensburger.
- Portable ISO/ANSI C.
- Should be thread-safe: no global variables and no static data.
- Endian-safe (no endian-awareness though).
- Should be memory-safe (needs more testing!).
- Reads standard MIDI file formats 0, 1 and 2, accepts sysex of any
length below 2^31.
rdmid.h C API headerfile (documentation).
rdmid.c C sourcefile (implementation).
read_a_midifile.c Example program, demonstrating how to use RDMID.
Makefile Handy to compile the example program under UNIX.
Users with a graphical compiler (IDE) may simply
drop the two .c files into a standard C project.
zefile.mid Standard MIDI file, input to the program.
zefile.txt Text output from the example program.
rdmid-0.21.tar.gz this complete directory tarred and
gzipped together for easier download.
Thanks to John Schwartz for fixing some bugs in version 0.10 (nov 2008):
- Implemented active sensing.
- Implemented Midi clock.
- Running status interruption by meta-events and sysex and such.
Thanks to Tim Thompson, Michael Czeiszperger and Andrew Arensburger for
their C sources and thanks http://www.harmony-central.com for distributing
them. Thanks to Marc Groenewegen and Peter Maas for collaborative hacking
these midi file readers.
RDMID version 0.21, december 30, 2019.
Latest version available at: https://ecomaan.nl/c/rdmid
Copyright (c) 2004, 2008, 2019 - Pieter Suurmond
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
Any person wishing to distribute modifications to the Software is
requested to send the modifications to the original developer so that
they can be incorporated into the canonical version.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.