IMF tools (as if we didn't have enough of them)

Here is where to post about the latest Commander Keen fangame or modification you've finished, a new website you've made, or another Keen-related creation.
User avatar
K1n9_Duk3
Vorticon Elite
Posts: 531
Joined: Mon Aug 25, 2008 9:30
Location: Germany
Contact:

IMF tools (as if we didn't have enough of them)

Post by K1n9_Duk3 » Wed Feb 20, 2013 15:19

Hi there!

These are just some quickly thrown together tools related to IMF files. I foolishly started writing these without looking around the web for already existing tools. So I don't know if they are even useful at all. Anyway, here they are:

Use this link: IMF Tools The links below are either already dead or will soon be dead.

K1n9_Duk3's IMF player v1.1 (DOS program, with source code)
K1n9_Duk3's IMF player v1.0 (DOS program, with source code)
Allows you to play any IMF file (even larger than 64K) in DOSBox or on a PC with an actual Adlib FM chip. You can change the IMF rate while the song plays.

K1n9_Duk3's IMF to WAV converter v1.1 (Win32 program, with source code)
Allows you to select which AdLib voices to use or ignore.
K1n9_Duk3's IMF to WAV converter (Win32 program, with source code)
Allows you to convert any IMF file to Wave format. Uses the MAME OPL emulator.

K1n9_Duk3's MIDI to IMF converter (Win32 program, no source code >: )
Converts MIDI files to IMF. Uses the timbre file from Duke3D and RotT, so the IMF should sound like their MIDI files played in Adlib mode.

Edit:
Malvineous' DRO to IMF converter (Win32 program, with source code)
Converts DOSBox OPL captures (DRO files) to IMF. This is basically version 1.1 with more accurate delays.

K1n9_Duk3's IMF crusher version 1.2 (Win32 program, with source code)
Removes unneccessary commands from IMF files to reduce the file size. Can also convert IMF songs to a different rate and/or format (plain IMF file or AudioT chunk).

Gerstrongs IMF Player v2.2 (Win32 program, with source code)
An updated version of Gerstrong's IMF Player. It doesn't crash anymore when you play IMF files that use rhythm mode (Monster Bash), and it should be able to play IMF files larger than 64K properly.
Last edited by K1n9_Duk3 on Sat Nov 05, 2016 22:07, edited 7 times in total.
Hail to the K1n9, baby!
http://k1n9duk3.shikadi.net

User avatar
_mr_m_
Vortimaestro
Posts: 423
Joined: Mon May 11, 2009 23:14
Location: A Midwest cornfield

Post by _mr_m_ » Wed Feb 20, 2013 17:59

After a little testing, I like the IMF output from your MID to IMF converter.

I processed a rather complex MIDI song in your converter and am quite pleased with the results. IMFCreator could not give results like this.

Some of the limitations (such as too many notes, pitch bends) in IMFCreator made it difficult to get decent sounding IMF files, even after exhaustive tweaking of the original MIDI file. Your converter handled it like a champ, and even made the percussion track not sound like a little kid banging on tin plates at random.

Thank you for this; this looks like it'll be a nice boost in my workflow.

Also, the IMF to WAV converter works perfectly.

I can't make any assessment of your IMF player as I have a 64-bit OS; although I'm sure it would work just as well as the other programs you've written.
"I just drew this stupid little fish." -- Tom Hall

User avatar
Gridlock
Vorticon Elite
Posts: 545
Joined: Thu Aug 12, 2010 2:20

Post by Gridlock » Wed Feb 20, 2013 21:54

:drool Thanks for releasing these. The imf to wav converter will be very helpful, and I'm liking the sound of that new midi to imf converter. I will give some of the Atroxian Realm songs a try with that new converter. Maybe it'll even help fix some of the problems Gamebird and I have been having. The imf player also looks handy :)

Edit: I tried importing an IMF file made with this converter into Keen 4, but all I''m getting is silence when the song plays. Unless I made a mistake, is it possible some setting needs to be changed? I'm not sure what IMF type the converter creates, but maybe it's the wrong IMF type? I don't have much expertise with the IMF format. Note that I was able to get the generated music to play in another IMF player (but not the one you made, I haven't used that one yet).
Image
Armageddon Begins Again. The Alphamatic has arrived.

Atroxian Realm: viewtopic.php?f=4&t=3536
The Alphamatic: viewtopic.php?f=4&t=4086

gerstrong
Vorticon Elite
Posts: 1157
Joined: Wed Dec 31, 2008 14:44
Location: Frankfurt - Germany
Contact:

Post by gerstrong » Tue Feb 26, 2013 18:33

By the way Commander Genius version 1.2 supports HQ Music in Galaxy games. Gridlock, you asked me before and for Keen 4 there are remixes. Might be interesting for you maybe ...

The format is ogg...
Having fun developing stuff...

User avatar
K1n9_Duk3
Vorticon Elite
Posts: 531
Joined: Mon Aug 25, 2008 9:30
Location: Germany
Contact:

Post by K1n9_Duk3 » Tue Mar 05, 2013 12:28

Gridlock wrote:I tried importing an IMF file made with this converter into Keen 4, but all I''m getting is silence when the song plays. Unless I made a mistake, is it possible some setting needs to be changed? I'm not sure what IMF type the converter creates, but maybe it's the wrong IMF type? I don't have much expertise with the IMF format. Note that I was able to get the generated music to play in another IMF player (but not the one you made, I haven't used that one yet).
Try using the /chunk option. The tool creates raw IMF files by default and some editing tools obviously don't bother checking if the file they import is a raw IMF file or a chunk that was ripped from an AUDIO/AUDIOT file.
Hail to the K1n9, baby!
http://k1n9duk3.shikadi.net

User avatar
Levellass
S-Triazine
Posts: 5261
Joined: Tue Sep 23, 2008 6:40

Post by Levellass » Wed Mar 06, 2013 3:58

Have you noticed it also creates type 0 IMF files and not type 1? http://www.shikadi.net/moddingwiki/IMF_ ... ile_format Most converters assume that the first word of your IMF file is not 0. (Keenwave allows conversion between the two types.)

Also, could you put an IMF file option in? I'd like to be able to scan an existing IMF file and remove all the dummy commands; I have noticed that the converter does this very well, but I don't always like how it converts midis and would like to modify existing IMF files. I assume this should be trivial to add.
What you really need, not what you think you ought to want.

User avatar
Paramultart
VBB's Partner in Crime
Posts: 3004
Joined: Mon Jul 26, 2010 8:36

Post by Paramultart » Thu Mar 07, 2013 13:51

Oh heck yes... Thank you, once again, King Duke!
"Father Mabeuf was surveying his plants"

Levack
Vortininja
Posts: 268
Joined: Thu Apr 12, 2012 17:28

Post by Levack » Thu Mar 07, 2013 18:39

:confused The IMF2WAV did not work :(

User avatar
Levellass
S-Triazine
Posts: 5261
Joined: Tue Sep 23, 2008 6:40

Post by Levellass » Fri Mar 08, 2013 0:48

But HOW did it not work? It worked for me.
What you really need, not what you think you ought to want.

User avatar
T-Squared
Vortininja
Posts: 188
Joined: Fri Nov 26, 2010 21:22
Location: Next Sunday, A.D.

Post by T-Squared » Fri Mar 08, 2013 2:12

I would suggest using IMF Creator instead, because it has IMF formats for Wolfenstein 3D, Duke Nukem II, and... shoot, there's one more that I can't remember.

You can:
*make custom instruments and save them to an OPL file.
*set the proper music speed (in Hz)
*even LISTEN to the music file before you export it! (However, this is a bit of a snag, as the music instruments can sound different in-game.)
all from within the program!
Cosmo II: HUMANIZED!!! Progress:
Graphics: 15% Complete
Story: 100% Complete
Music: 5% Complete
Programming Modifications: ??% Complete

http://www.tsqproductions.com

User avatar
T-Squared
Vortininja
Posts: 188
Joined: Fri Nov 26, 2010 21:22
Location: Next Sunday, A.D.

Post by T-Squared » Fri Mar 08, 2013 2:12

T-Squared wrote:I would suggest using IMF Creator instead, because it has IMF formats for Wolfenstein 3D, Duke Nukem II, and... shoot, there's one more that I can't remember, maybe it was Commander Keen.

You can:
*make custom instruments and save them to an OPL file.
*set the proper music speed (in Hz)
*even LISTEN to the music file before you export it! (However, this is a bit of a snag, as the music instruments can sound different in-game.)
all from within the program!
Cosmo II: HUMANIZED!!! Progress:
Graphics: 15% Complete
Story: 100% Complete
Music: 5% Complete
Programming Modifications: ??% Complete

http://www.tsqproductions.com

Levack
Vortininja
Posts: 268
Joined: Thu Apr 12, 2012 17:28

Post by Levack » Fri Mar 08, 2013 4:13

It opened for one sec then quit

User avatar
Paramultart
VBB's Partner in Crime
Posts: 3004
Joined: Mon Jul 26, 2010 8:36

Post by Paramultart » Fri Mar 08, 2013 5:13

T-Squared wrote:I would suggest using IMF Creator instead, because it has IMF formats for Wolfenstein 3D, Duke Nukem II, and... shoot, there's one more that I can't remember.
I see both of them having a purpose.
I hardly use any of the additional features in IMF Creator because it never seems to register when I change an instrument. Also, the default soundfont settings are far superior in MID2IMF than IMFCreator. You shouldn't have to be so meticulous when converting.
"Father Mabeuf was surveying his plants"

User avatar
Bubbatom
Vorticon Elite
Posts: 329
Joined: Sat Oct 23, 2010 0:55
Location: South Australia

Post by Bubbatom » Fri Mar 08, 2013 5:36

Levack wrote:It opened for one sec then quit
Your PC is probably 64 bit whereas the program must be run on a 32 bit system.
Image

User avatar
Nospike
Keen Minecrafter
Posts: 1308
Joined: Tue Mar 30, 2010 13:56
Location: Carlsbad, Czech Republic

Post by Nospike » Fri Mar 08, 2013 6:29

If you have a 64 bit system, you need to run it from the command line. Also helps with parameters.
I like having both imf creator and this wonderful tool handy. They both sound very different but in a perfect way.
It just might be done someday. The chance is always there.

Post Reply