There is now a new and improved version of this tool, the automatic BARS patcher.
Simple BARS file patcher for patching BWAV headers with a custom file header
Compile with standard C++ compiler without any special flag
Running the program without any arguments will show help
Online version here: https://smashcustommusic.net/onlinetools/bars-patcher/