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:

Post by K1n9_Duk3 » Thu Nov 27, 2014 16:04

Here is something new:

K1n9_Duk3's IMF to WAV converter v1.1 (Win32 program, with source code)
You can now select which AdLib channels should be played and wich ones should be muted. The release includes a batch file that "splits" IMF songs into multiple single-voice WAV files. Should be a nice tool if you want to remix some of those old music tracks.
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 » Fri Nov 28, 2014 6:45

Now this code is sheer art. Beautifully done!
What you really need, not what you think you ought to want.

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

Post by Gridlock » Sat Jan 10, 2015 4:19

The links to the IMFCrush downloads as well as gerstrong's imf player are dead. Can these links be updated? Also, adding these to the Keenwiki would be a good idea, as they are very useful programs.
Image
Armageddon Begins Again. The Alphamatic has arrived.

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

User avatar
Flaose
Vorticon Elder
Posts: 567
Joined: Sat Oct 27, 2007 20:30
Location: The Frozen Hell
Contact:

Post by Flaose » Sun Jan 11, 2015 5:03

That's a great idea. The wiki is open to everyone to edit (after registering an account) so feel free to do it!
Cerebral Cortex 314 - For All of your Commander Keen Needs.
Eat at Joe's

User avatar
Commander Spleen
Lord of the Foobs
Posts: 2359
Joined: Wed Oct 31, 2007 22:54
Location: Border Village
Contact:

Post by Commander Spleen » Sun Jan 11, 2015 9:29

Need moar RAD/A2M to IMF conversion. Currently doable via DOSBox DRO export and then DRO2IMF.

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

Post by Paramultart » Sun Jan 11, 2015 23:04

An IMF sequencer would be nice.
"Father Mabeuf was surveying his plants"

User avatar
MoffD
Vorticon Elite
Posts: 1182
Joined: Thu Jul 05, 2012 17:30
Location: /dev/null
Contact:

Post by MoffD » Mon Jan 12, 2015 14:21

Paramultart wrote:An IMF sequencer would be nice.
mortimermcmirestinks wrote: Now I wish MoffD wasn't allergic to me.
Levellass wrote:You're an evil man.
Image

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

Post by Levellass » Thu Jan 29, 2015 4:15

I saw one written in BASIC, but could never contact the guy who made it. I was much sadness.
What you really need, not what you think you ought to want.

gerolf
Meep
Posts: 2
Joined: Thu Feb 25, 2016 18:04
Location: USA

Post by gerolf » Thu Feb 25, 2016 18:06

Sorry for the bump, but I used the MIDtoIMF and it works great. The songs actually work in Wolf3d, but they don't loop!

So I was thinking using your IMF Crusher would do the trick to get them to function properly with Wolf 3d, but the link is dead!

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

Post by K1n9_Duk3 » Sat Feb 27, 2016 13:08

gerolf wrote:IMF Crusher ... the link is dead!
Gridlock wrote:The links to the IMFCrush downloads as well as gerstrong's imf player are dead. Can these links be updated?
All k1n9duk3.ohost.de links are dead because ohost.de died one or more years ago. My other host allows only 50 MB of ad-free web space, which is why I didn't upload all of my tools over there, too. I don't have the files with me right now, so I can't help you. Sorry.
gerolf wrote:Sorry for the bump, but I used the MIDtoIMF and it works great. The songs actually work in Wolf3d, but they don't loop!

So I was thinking using your IMF Crusher would do the trick to get them to function properly with Wolf 3d
I would need to see your IMF file in order to help.

All I can say from here is that Wolf3D plays every IMF song in a loop. I don't remember any code that would allow you to play the song once and then stop. Which leads me to believe that either your IMF song somehow managed to corrupt memory while being played in Wolf3D or it just has a very long silent part at the end of the song. But to confirm any of that, I would have to see your IMF file.

Another thing to pay attention to is the size of your IMF song. All DOS games that use the IMF format require the IMF song to be 64kb or less. If your IMF song ins larger, you cannot play it properly in Wolf3D.

Try playing the song in my IMF player (the DOS version) or converting it to WAV using IMF2WAV. That way you can see if there is silence at the end of the song.

If my IMF player for DOS plays the song correctly (and loops it), something is very wrong. The playback routines were taken directly from the Wolf3D source code.

And, just in case:

I would need to see your IMF file in order to help.
Hail to the K1n9, baby!
http://k1n9duk3.shikadi.net

gerolf
Meep
Posts: 2
Joined: Thu Feb 25, 2016 18:04
Location: USA

Post by gerolf » Wed Mar 02, 2016 3:41

Yep, the problem is the songs are over 64kb :(

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

Post by Levellass » Sat Mar 05, 2016 3:50

How much over?

You have options, firstly just cutting the end or beginning off of the song (Or middle if you use KeenWave.) IMFCrush may shrink it some. Failing that you can eliminate various MIDI tracks from the file to simplify the song at the cost of notes played.
What you really need, not what you think you ought to want.

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

Post by K1n9_Duk3 » Mon Mar 07, 2016 8:27

I finally managed to upload some new versions of the tools and updated the links (see first post in this thread).

Most updates are related to a problem with DRO2IMF. The DOSBox .DRO captures expect all AdLib registers to be set to 0 at startup and therefore do not contain instructions to set the registers to 0. This causes problems when the resulting IMF file is played in a loop or after a having played other IMF songs in a game.

You can use the IMF crusher to fix any IMF file created by DRO2IMF. (Yes, I was too lazy to fix the issue directly in DRO2IMF) :p
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 » Fri Mar 11, 2016 1:36

So it's just the IMFCrush that's been tweaked? I did wonder why WinAmp occasionally blew a fuse.
What you really need, not what you think you ought to want.

User avatar
Nisaba
Vorticon Elite
Posts: 929
Joined: Fri Jan 01, 2016 23:34
Location: The Outpost
Contact:

Post by Nisaba » Sat Dec 17, 2016 12:29

next to K1n9_Duk3's webpage one can finally discovery all these IMF Tools over here as well:
"We have come to conquer you all and bring you lots of candy!" | about me | my current project: play Keen mods on a GameBoy |

Post Reply