Convert .aif files to .wav #711
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This corresponds to the following pokeemerald PR:
Today, all of the audio samples exist as
.aiffiles. In general,.aifis a less convenient format compared to.wav..wavfiles are much better supported in 3rd party programs (such as virtual instruments)..wavalso has first-class support for loop points, whereas.aifonly has a generic notion of a "marker". By swapping over to.wavfiles, it significantly eases both crafting custom instrument samples, as well as using the instrument samples in popular DAW VSTs/plugins (e.g. TX16Wx).To actually perform the conversion from
.wav->.bin, this incorporates a slightly-modified version of ipatix'swav2agb. The modifications were all in the name of producing perfectly matching output:.binfiles with a command line option-b, --binary. (The original only supports outputting.sassembly files.)agbpRIFF chunk.agbpchunk isn't present in the source.wavfile, it will simply use the .wav's sample rate to calculate this "pitch" value.I produced these
.wavfiles with this script that converts the GBA format.binfiles to.wavfiles: https://gist.github.com/huderlem/578b22512534891467490b864ca08ae0Users can also run this script for converting any custom samples.