Skip to content
/ 2dxTools Public

Small tools to deal with 2dx audio container files

Notifications You must be signed in to change notification settings

mon/2dxTools

Repository files navigation

2dxTools

A set of tools for working with 2dx audio containers.

Download here

2dxDump

2dxDump infile.2dx

Takes a 2dx and dumps all its wavs. Names them sequentially with no leading zeros.

2dxBuild

2dxBuild outfile.2dx

Builds a 2dx with default paramaters for loop point/volume etc.

2dxMerge

2dxMerge infile.2dx outfile.2dx

For each file in infile.2dx, if there is a .wav present in the directory, it will replace it in the new file. Useful for extracting a single audio file, editing it, then adding it back.

2dxWavConvert

2dxWavConvert infile outfile.wav [preview]

Takes any file that sox supports (mp3, flac, wav, ogg, etc) and converts it to the specific format required for 2dx files (MS-ADPCM wav with a block size of 256). If the third argument is "preview", the file is clipped to exactly 10 seconds to comply with preview wav requirements.

Example: Custom song preview + game audio

2dxWavConvert mySong.ogg 0.wav
2dxBuild 1234.2dx
2dxWavConvert mySong_preview.ogg 0.wav preview
2dxBuild 1234_pre.2dx

Tools to come:

2dxTransfer - will work like 2dxMerge, but will take two input files, an output, and a list of tracks to transfer. Metadata (such as loop points) will also be transferred.

Enhancements to 2dxDump and 2dxBuild to generate and load xml files so track parameters can be modified.

If you have a burning need for one of these unfinished tools, please get in contact. I appreciate motivation.

About

Small tools to deal with 2dx audio container files

Resources

Stars

Watchers

Forks

Packages

No packages published