An utility which converts IMF (Id-Software Music File) format into General MIDI. Created by Wohlstand in 2016 year.
It's a music format based on a sequence of native OPL2 chip values which are sequentially sending into chip registers. The format used in various Id-Software games like Commander Keen and Wolfenstein and in a lot of games made and/or published by Apogee Software company.
GCC:
gcc main.c imf2mid.c -o imf2midCLang:
clang main.c imf2mid.c -o imf2midMSVC:
cl main.c imf2mid.c /link /out:imf2mid.exe./imf2mid [option] filename.imf [filename.mid]
-np- ignore pitch change events-nl- disable printing log-li- write dump of detected instruments into "instlog.txt" file
Licensed under MIT license
- Add ability to define time multiplication coefficient to allow right alignment of notes per tact
- Add ability to manually declare patch ID per channel
- Add better generation of the drums
- Make more accurate drum velocity detection based on interpolation of attak parameter and note length