Hex editing audio file headers

motsm

Golden Member
Jan 20, 2010
1,822
2
76
I'd never done any hex editing before, but I figured out enough to convert a .wir (WAVES IR-1 proprietary impulse file) to a standard .wav file by comparing the first few lines side by side in HxD. Converting one file was easy enough, and doing a few wouldn't be so bad. However, I have hundreds of files I'd like to convert, and while I'm not completely opposed to going through each file I'd obviously like to find a simpler solution. The entire header can't simply be pasted for each one either, which is the main problem, as certain parts are needed to retain the channel number, sample rate etc. So it's a matter of swapping out a line of blocks, then leaving some, and replacing another line etc.

So basically, does anyone know of some sort of batch hex editor that will allow me to do the process once, and have it applied to a number of files? Of course any other solution someone might have is welcome, since as I said, I have no real experience with hex editing, and I could be missing something obvious. Don't know if this is the best forum section for this to be in anyway, so we'll see.
 

motsm

Golden Member
Jan 20, 2010
1,822
2
76
If I had the ability to write a program to do it, I'd be all set. ;)

Thanks for the links. I gave it a shot, and guess I didn't get too far with it, as the hex plugin didn't want to play nicely with certain features in NP++.

I did however end up grabbing Ditto, and set up the lines of hex that need to be replaced in each file to hot keys, so it's not too bad that way. Using Windows command prompt also allows for batch file extension changes, so knocking out the final step is pretty hassle free.