2017-03-23 22:50:15 +10:00
|
|
|
# 2dxTools
|
2017-03-23 22:36:32 +10:00
|
|
|
|
|
|
|
A set of tools for working with 2dx audio containers.
|
|
|
|
|
2017-03-23 22:52:05 +10:00
|
|
|
[Download here](https://github.com/mon/2dxTools/releases)
|
|
|
|
|
2017-03-23 22:50:15 +10:00
|
|
|
### 2dxDump
|
2017-03-23 22:36:32 +10:00
|
|
|
|
|
|
|
`2dxDump infile.2dx`
|
|
|
|
|
|
|
|
Takes a 2dx and dumps all its wavs. Names them sequentially with no leading zeros.
|
|
|
|
|
2017-03-23 22:50:15 +10:00
|
|
|
### 2dxBuild
|
2017-03-23 22:36:32 +10:00
|
|
|
|
|
|
|
`2dxBuild outfile.2dx`
|
|
|
|
|
|
|
|
Builds a 2dx with default paramaters for loop point/volume etc.
|
|
|
|
|
2017-03-23 22:50:15 +10:00
|
|
|
### 2dxMerge
|
2017-03-23 22:36:32 +10:00
|
|
|
|
|
|
|
`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.
|
|
|
|
|
2017-03-23 22:50:15 +10:00
|
|
|
### 2dxWavConvert
|
2017-03-23 22:36:32 +10:00
|
|
|
|
|
|
|
`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.
|
|
|
|
|
2017-06-21 12:11:50 +10:00
|
|
|
## Example: Custom song preview + game audio
|
|
|
|
|
2017-06-21 12:12:17 +10:00
|
|
|
`2dxWavConvert mySong.ogg 0.wav`
|
|
|
|
`2dxBuild 1234.2dx`
|
|
|
|
`2dxWavConvert mySong_preview.ogg 0.wav preview`
|
2017-06-21 12:11:50 +10:00
|
|
|
`2dxBuild 1234_pre.2dx`
|
|
|
|
|
2017-03-23 22:50:15 +10:00
|
|
|
## Tools to come:
|
2017-03-23 22:36:32 +10:00
|
|
|
|
|
|
|
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
|
2017-06-21 12:11:50 +10:00
|
|
|
contact. I appreciate motivation.
|