Zeus_Da_master
Smash Journeyman
in case yall didn't know, heres a video guide to it
https://www.youtube.com/watch?v=p_eYsBYsMck
https://www.youtube.com/watch?v=p_eYsBYsMck
Welcome to Smashboards, the world's largest Super Smash Brothers community! Over 250,000 Smash Bros. fans from around the world have come to discuss these great games in over 19 million posts!
You are currently viewing our boards as a visitor. Click here to sign up right now and start on your path in the Smash community!
This guide is basically not needed anymore.
http://smashboards.com/threads/how-...-conversion-guide.401142/page-2#post-21115391
Hey jmlee337, I have a question regarding the output gain of hps files.As of 2016/04/13, the latest version and information about dsp2hps is available at https://github.com/jmlee337/dsp2hps
I heavily reworked MeleeHps to be way more user friendly and produce slightly better results
seriously, it now literally takes 5 seconds to go from audiofile.anyformat to audiofile.hps
Download
changelog v3 (2016/04/13):
changelog v2 (2016/04/01):
- rewrote the conversion from DSP to HPS in C++
- since this is sufficiently removed from what MeleeHps was, I'm calling my tool 'dsp2hps'
- calculates all block header values correctly to remove all pops from the final audio. to my knowledge, this is the only tool to write the correct P/S, hist1, and hist2 values in the HPS block headers
- I've uploaded my code to github: https://github.com/jmlee337/dsp2hps
changelog v1 (2016/03/31):
- you can convert files in batch! Just drag them all onto run.bat
- here's a vid
How do I use this?
- no more opening with audacity and clicking and saving to format the file correctly
- no more fiddling with hex editors
- no more copy pasting samples-this and blocks-that
- drag-and-drop or invoke from the command line
- more accurate block headers mean fewer/smaller pops during playback
- parameterized output file names let you do a bunch in a row without overwriting your output
how to use (video form):
how to use (text form):
That's so easy! What's the catch??
- move your audio file (in any format) to the MeleeHps folder
- drag it onto 'run.bat'
- that's it.
- you can also invoke from the command line: run.bat myaudiofile.ogg
How'd you do it??? (technical details)
- you still have to make sure your source audio file loops correctly
- this only works for 'normal' loops, not 'custom' loops
what are you working on next?
- audacity
i included ffmpeg, which can convert from any format to 16bit WAV 32000 kHz from the command line
- hex editors
i configured main.asm to automatically add the correct padding. I discovered that DSP data must be 32-byte aligned! 16-byte alignment also seemed to work for me, but all the stock HSPs are 32-byte aligned. This must be why achilles sometimes found that adding a pad in a hex editor didn't always work the first time.
- samples/blocks
well simply, that data is all calculable from the DSP files themselves. I had to do a horrendous hack to make it work though (the batch file replaces the first line of main.asm, that's why SampleLength is defined there)
- drag and drop
since you don't have to edit the DSPs or main.asm before running the assembler, the whole conversion process can be done in one batch script
- more accurate block headers
the original main.asm used the first block header in the file for every single block. I made it use the correct block header, but there's two values (hist1 and hist2) that actually require decoding the DSP block to set correctly. This makes any audible pops fewer and smaller, but does not solve the problem completely. I included the most complete documentation I could assemble for the format of HSP audio files in main.asm
- output file names
just a small quality of life edit. the output file now has the format [inputfilename].hps, so songname.mp3 would produce songname.mp3.hps as the output. This means you can run a bunch in a row and move out all your hps files once you're done
rewriting all the main.asm + assembler business in an actual programming language to make the world a little more sanefurther parameterizing so you'll be able to drag all the files onto run.bat and convert all of them in one gowriting hist1 and hist2 in the HSP headers correctly to remove popping all together- Adding support for custom loops (loop points at any arbitrary sample, not just block boundaries)
your problem is with the 'loudness' of your tracks. This is different from level (up to 0 dB). Most commercial music that you'd put into Melee is already 'mastered' (an audio engineering term), including adjustments to loudness. A major exception to this would be classical music.Hey jmlee337, I have a question regarding the output gain of hps files.
I did everything to my custom music in Audacity, including normalizing and amplifying, but the output hps when I put it in the game is still too low compared to the default music. And I amplified it up to 0 dB, so I don't know what's going on.
Is there some kind of preset volume Melee uses for it's stage music that I can adjust individually in the hps files?
Ok, thanks for the info! It's interesting because the music I am using is already from another game. I guess they didn't increase the loudness as much as Melee music.your problem is with the 'loudness' of your tracks. This is different from level (up to 0 dB). Most commercial music that you'd put into Melee is already 'mastered' (an audio engineering term), including adjustments to loudness. A major exception to this would be classical music.
If you are using music that isn't already mastered for loudness (like classical) or music that you've recorded yourself, you'll have to adjust the loudness of your tracks to your preferred level (when compared to the stock Melee music). You can Google terms like "mastering loudness", "limiter", "compression" to find resources on how to do this.
If a track is already mastered, can you still raise the volume level to put it in-game? I'm using audacity and yeah, I have the same problem as the last guy.your problem is with the 'loudness' of your tracks. This is different from level (up to 0 dB). Most commercial music that you'd put into Melee is already 'mastered' (an audio engineering term), including adjustments to loudness. A major exception to this would be classical music.
If you are using music that isn't already mastered for loudness (like classical) or music that you've recorded yourself, you'll have to adjust the loudness of your tracks to your preferred level (when compared to the stock Melee music). You can Google terms like "mastering loudness", "limiter", "compression" to find resources on how to do this.
isn't that what all fixes are though? jkSame. All the audio I turn into hps and put in game is way too quiet. Is there any fix less ambiguous then googling terms for resources?
you can do this too and I don't know why I didn't mention it my original post. It's called 'normalization'. If you're using Audacity, it's built in! Effects -> NormalizeIf a track is already mastered, can you still raise the volume level to put it in-game? I'm using audacity and yeah, I have the same problem as the last guy.