How to batch convert .xm / .mod files to .wav files in linux

Mar 11th, 2012 | By | Category: Linux / Freebsd

Well funny enough I had given up on this because of so many forum posts that I found saying it cant’ be done and that you need windows bla bla bla.. Well they are all a bunch of chumps because there is a native linux solution that is easier and quicker than anything you can muster in windows.

XMP : First things first, you need to install this amazing little CLI .xm .mod player.  It’s in the repos so just apt-get install xmp and you are set

Next you need to employ a little bash magic to pull off a batch convert but it’s as simple as simple can be.  I tried using find to do it in the beginning but it just froze in the converting process so I used bash instead:

Just go into the directory where your .xm files are kept and type this: for file in ./*;do xmp “$file” -o “$file.wav”;done;


Now go grab yourself a cup of tea or something, come back in a few minutes and give thanks that you use such a beautiful OS that allows for things like this to happen so easily.

Tags: , , , , , , ,

2 Comments to “How to batch convert .xm / .mod files to .wav files in linux”

  1. John says:

    Thanks, I had been wondering if there was a command line tool so I could batch convert the Amiga Mod Anthology. This is the answer !

  2. igor says:

    bless you for this tip!

Leave a Comment