wav2msu
From The Pile
The MSU-1 logo. Designed by BMF, vectored by Kawa.
wav2msu is a small tool made by Kawa in a fit of helpfulness. It makes conversion from an ordinary Windows .wav file to byuu's custom .pcm files a very straightforward task, without the need for a hex editor.
Now that bsnes v070 is out, this is actually useful.
Usage
wav2msu foo.wav yields foo.pcm wav2msu foo.wav bar.pcm yields bar.pcm wav2msu foo.wav -l 0x123456 yields foo.pcm, looping at sample #1193046 wav2msu foo.wav -l 123456 yields foo.pcm, looping at sample #123456 wav2msu foo.wav -i bar.wav yields foo.pcm, using bar.wav as an intro to foo.wav
If oggdec.exe and flac.exe are in the same directory, wav2msu can take .ogg and .flac files as well. It'll automatically invoke the appropriate decoder to create a .wav file and convert that.
Error messages
- Loop point in bad format. Expected decimal or 0x-prefixed hex.
- The -l parameter was given, but the next parameter was not a numerical value.
- Expected a .wav file.
- The input file did not have a .wav extension.
- Incorrect header - file is presumably not in little-endian order.
- MSU-1 PCM files are in little-endian byte order, which is also the usual order in a .wav file. Little-endian .wav files start with the identifier "RIFF", whereas the rare big-endian files start with "RIFX".
- Sound is not in PCM format.
- .wav files can contain other kinds of sound data besides raw PCM, such as MP3. These things are not supported.
- Sound is not 16 bits 44.1kHz stereo.
- MSU-1 PCM files are exclusively CD-quality, so only CD-quality .wav files are allowed as input.
- Sample data not where it was expected.
- The data chunk usually follows directly after the format info chunk, which in turn is usually the first chunk. Any sound editor that does not store these important bits in the expected place risks incompatibility with a lot of programs.