PiyoPiyo waves to Organya

Mar 13, 2023 at 7:48 AM
War criminal
"Life begins and ends with Nu."
Join Date: Jun 27, 2013
Location: Phoenix
Posts: 2764
Age: 29
Hello yes, it's been some time, but I got inspired to work on my passion project for OrgMaker, and one of my goals was to implement waves from PiyoPiyo into the Wave100, for those who wanna emulate their songs in Cave Story, especially when the waves used for the songs are the same length as in Wave100. Well here's some fucking documentation that can help you with that!

In every .pmd file, you can find the three waves in these hex addresses with a hex editor:

Wave 1 - 0x2c
p378402-0-image.png


Wave 2 - 0x180
p378402-1-image.png


Wave 3 - 0x2d4
p378402-2-image.png


You can essentially do that with every wave that was in the songs included with PiyoPiyo player, and since you can very easily draw the waves in PiyoPiyo, you're free to create any wave for your OrgMaker soundfont, not unlike WaveGen100. This is how we can beat Pxtone, guys!

Here, you can see an example I've made, plugging in the waves from "Cave Story" and "Azarashi 1998"
Cave Story (洞窟物語.pmd)
p378402-3-image.png

p378402-4-image.png
p378402-5-image.png
p378402-6-image.png


Azarashi 1998 (アザラシ!.pmd)
p378402-7-image.png

p378402-8-image.png
p378402-9-image.png
p378402-10-image.png
Example download (Note: rename to WAVE100 if you wanna plug it in OrgMaker, or WAVEDATA if you wanna plug it in Cave Story. wave.dat if you wanna use it in Cave Story+
 
Apr 2, 2023 at 8:37 PM
Senior Member
"Fly, Fly, Fly!"
Join Date: Feb 4, 2015
Location: Nibel
Posts: 136
Age: 18
Interesting!! I like to use orgmaker waveforms in my music, is there any way for me to convert this data into raw .wav samples (like the org samples pxtone comes with)? I've been thinking about using piyopiyo waveforms too for a while
 
Apr 2, 2023 at 9:59 PM
War criminal
"Life begins and ends with Nu."
Join Date: Jun 27, 2013
Location: Phoenix
Posts: 2764
Age: 29
I'm sure there are much better ways to do this, but my method includes creating a text document in notepad, and plugging in 256 characters and then saving it. Then, with "display file extensions" enabled in windows explorer, remove the file extension for the file you made, and then open it in the hex editor of your choice (I use HxD). And you should get something that looks like this, that is 256 bytes long:
p378439-0-image.png


With that, you can paste in the piyo wave you'd like in there, save it, and then open it with Audacity. You don't need to do anything with it, other than open it as a signed 8-bit PCM.
p378439-1-image.png
p378439-2-image.png


Your wave should show up, and under "Start and Length of Selection", you can change the time to samples.
p378439-3-image.png
p378439-4-image.png


Now, idk if this is mandatory, I'm not really a PxTone user, but for the org samples that came with it, Pixel had them all compressed from 256 samples to 200 samples, which is why they sound kinda different. Idk if they're supposed to be that size, but if that is the case, definitely change the speed from 256 to 200.
p378439-5-image.png


Then under "Export" to "Export to WAV", you just gotta save it as a unsigned 8-bit pcm WAV file:
p378439-6-image.png


And if you load it onto Pxtone, you should have the wave with these parameters (I also put in one of the org waves for comparison).
p378439-7-image.png
 
Top