Batch convert sound files to 8-bit unsigned raw files for use in the Paragon5 tracker (AKA Beyond Tracker, AKA ...) Converts anything your version of sox can read.
Requirements: A version of sox.exe (and its accompanying zlib1.dll) in the same directory or on the system path.
Use:
python wav2gb.py file1.ogg file2.wav ....etc
Windows .exe file included for people who can't/won't install Python. Just drag & drop a bunch of sound files onto the .exe file.
Sounds are padded up to a multiple of 32 samples for use with the 3rd channels X: play long wave command.
Currently if the sound is over 65504 samples (about 34 seconds) the remainder is lost. We could auto slice into multiple raw files, but due to how tempo works in the tracker, it'd be hard to line the slices up exactly. I think it's better if a wav editor is used to cut the sample into shorter samples on the beat. In any case, waves this big will be too big for the song to be compiled to a ROM.