Achilles1515
discovered a bug that produced malformed files if a custom loop point was set as a multiple of 1.792 seconds
I have fixed the bug and you can download the new version here:
https://github.com/jmlee337/dsp2hps/releases/tag/v6
You can always get the latest version of dsp2hps with this link:
https://github.com/jmlee337/dsp2hps/releases/latest
Great news. Thanks again for this program, it is a blessing.
Possible feature request for the future:
- parse a custom loop point from the file name
Ex. "SSBB - BattlefieldLOOP3.584.wav"
If "LOOP" is found in the file name, grab the digits from this point in the string until the file extension --> convert to float and use as loop point instead of the value in the text file.
How this would be helpful:
- Batch processing custom loop HPS files.
When I found the bug you stated, it was AFTER I had already created ~100 HPS files for 20XX, pretty much all custom loop and originating from BRSTM files. While I was creating these, I just had the custom stereo BAT file open in Notepad and was changing the loop point, saving the file, and just keeping it open until I needed to modify the loop point again for the next file. I guess stupidly on my part - I was not writing down the loop points for each file whose WAV was exported from BrawlBox (because I knew I could get the loop point again if I really desired by opening the BRSTM back up in BrawlBox and looking at the original sample rate/ loop sample). Well, my lack of documenting loop points bit me in the a$$ now that I need to remake a fair amount of HPS files, after first determining which HPS files in the bunch are actually problematic. So for each HPS file that needs fixing, I'll have to open the BRSTM back up in BrawlBox and recalc the loop point, and make the HPS again. I really should have been saving the "custom_stereo.bat" files for each WAV I was converting - but what would have been even slicker is if the feature I am proposing existed. So I could have just put the 100 WAV files in a folder, each with the "LOOP" specified in the file name, and then could make 100 new HPS files all at once. It would turn the solution to the situation I am in into just a few minutes (just the dsp2hps processing time), especially because I wouldn't have to care about which HPS files are okay or not - just re-create them all because it would be simple.
- One other thing - I haven't checked with the new version of dsp2hps, but creating a custom loop HPS with loop point 0.000 (a "custom" normal loop HPS) would create a broken file. This should be able to be accomplished imo, and would allow "custom" normal loop HPS in the batch mode stated above.
Thanks again for all your hard work on this program. Your C++ is very clean as well.
Also, I stickied this thread because it needs to be.
@DRGN