PCEngine-FX.com

PCE-FX Homebrew Development => Localizations, Games, Apps, Docs => Topic started by: ccovell on 03/19/2012, 11:39 PM

Title: WYSIWYG Wave Sound Generation Tool
Post by: ccovell on 03/19/2012, 11:39 PM
Hi, folks.  I had an idea for a fun tool that didn't quite exist yet, so I spent a few hours of my free time this week making it.  Let me know if you find it useful for your audio/music projects.  It's still at an early stage, and doesn't have controls for frequency, panning, etc, but hey.

(?action=dlattach&topic=11401&attach=7214&image)

Contains waveforms from the System Card, Gunhed, and Ankoku Densetsu too.

Download: chrismcovell.com/data/Waveform_Tool.zip
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: Arkhan Asylum on 03/19/2012, 11:51 PM
Cool.  Now all the people can stop bitching at me to make something like this for squirrel, lol.

Solid. :)  I like it.
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: ccovell on 03/20/2012, 12:07 AM
I'm open for naming suggestions.

WYSIWSG is one.   Extra Crunch is another...   :)
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: Arkhan Asylum on 03/20/2012, 12:46 AM
I myself, would call it WaveDiddler, but my wordings for things is... yeah. :)

Once I release the new Squirrel stuff, I'll be sure to link to this for people to use along with it. 
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: grahf on 03/20/2012, 01:44 AM
PCM Engine
or
PCMgine
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: esteban on 03/20/2012, 03:14 AM
(https://junk.tg-16.com/images/pcg0.png) Pulse-Cacophony Modulation
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: touko on 03/20/2012, 04:13 AM
All sound stuff are cool .  =D>
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: OldRover on 03/20/2012, 06:06 AM
Quote from: grahf on 03/20/2012, 01:44 AMPCMgine
^^^ that. :D
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: _Paul on 03/20/2012, 06:24 AM
Quote from: The Old Rover on 03/20/2012, 06:06 AM
Quote from: grahf on 03/20/2012, 01:44 AMPCMgine
^^^ that. :D
Seconded
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: Arkhan Asylum on 03/20/2012, 08:19 AM
awww noone likes WaveDiddler?
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: ParanoiaDragon on 03/20/2012, 12:29 PM
Quote from: guest on 03/20/2012, 06:24 AM
Quote from: OldRover on 03/20/2012, 06:06 AM
Quote from: grahf on 03/20/2012, 01:44 AMPCMgine
^^^ that. :D
Seconded
Thirded
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: FraGMarE on 03/28/2012, 08:01 PM
This is fascinating to use!  Though I have no idea wtf I'm doing lol
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: ccovell on 03/28/2012, 09:46 PM
Finally, a comment on the actual program!

Play around with it; the top window is basically a scratch area for building custom waveforms, and the bottom window has presets from Hudson, Compile, etc. :-)

The ADSR is totally primitive, but does make a big difference as some instruments sound better as continuous tones, while others work better with simple linear fades or sine-shaped crest-and-fade, or even a hold@1F-drop-and-hold@0F for an echo effect.
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: spenoza on 03/29/2012, 12:37 AM
Now, you are editing the waveform and not the envelope for a set waveform, right? With this proggie, I mean... I know, I don't know enough about chiptune generation...

Ah, methinks the ADSR is the envelope. I suck at this. Good note generation is damn hard. This is still a cool program. What would be even cooler would be an emulated (via Mednafen, most likely) PSG engine with a Windows interface. Then you could tweak shit using a modern interface and hear actual (well, nigh-actual) PSG results.
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: Arkhan Asylum on 03/29/2012, 08:42 AM
Quote from: guest on 03/29/2012, 12:37 AMAh, methinks the ADSR is the envelope.
Yep.  It's been an envelope since before PCE existed ;3.  Though, I don't think it's THAT primitive.  It functions about on par with my Roland SH-101, and that thing is awesome.

QuoteWhat would be even cooler would be an emulated (via Mednafen, most likely) PSG engine with a Windows interface. Then you could tweak shit using a modern interface and hear actual (well, nigh-actual) PSG results.
Yeah. People have been saying that since like 2005.  Maybe even earlier.  It'd be easier to just use this since it works already and quit dreaming of what would be cooler since it'll probably never happen. -_-;


And what ccovell said is infinitely true.  Some waves sound like complete ass if you apply no envelope to them.  They come out harsh/abrasive, and lack any real character.   I first discovered this when I did that Splatterhouse cathedral tune, and realized it 100% when I did the Shadow of the Beast tune.

The right wave + envelope is how you get a nice bass tone.  Protocard recipients will see this when they get their cards.

With this program, you guys can actually grab the values, and punch them in as custom waveforms for Squirrel.  Same for envelopes.


Ccovell: My only complaint, and it's a foofoo complaint, is the palette.  Any chance you'd want to put in a palette-swap button for green/teal/yellow/orange/etc on black?  :D

and, would you be against me packaging this tool in with Squirrel 3.0 when it gets released?  With reference/link/etc, of course, so people don't think Aetherbyte wrote it.
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: Nando on 04/12/2012, 12:05 PM
whoah, very cool. Opened it up in Ootake, the mute doesn't quite mute it if the cursor is on the wave part, could be just my end, just messing around with the forms, I think I got a Pong like sound. Not sure what all I am doing either but it seems simple enough to use.

as for a name how about

PCwavE <- imagine a snazzy logo ;)
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: ccovell on 04/14/2012, 11:33 AM
Okay, a little bit of coding every day, and I have a newer (beta) version of the tool.  I incorporated a few of your requests and also added a 2nd control panel to do all the messy per-channel stuff.  If the channel control panel is too confusing, ignore it, and just play with the waveforms and ADSR (envelopes.)

(https://www.chrismcovell.com/images/Waveform_Tool2.gif)

I even added a handful of palettes for you aesthetes.

(https://www.chrismcovell.com/images/Waveform_Tool4.gif) (https://www.chrismcovell.com/images/Waveform_Tool3.gif)

chrismcovell.com/data/Waveform_Tool.zip
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: Arkhan Asylum on 04/14/2012, 03:21 PM
yay palettes.  :)   

I see you went with PCMgine for the name
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: esteban on 04/15/2012, 12:55 AM
Quote from: guest on 04/14/2012, 03:21 PMI see you went with PCMgine for the name
No, he's going to change it to "Pulse-Cacophony Modulation" in the next update. :pcgs:
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: ccovell on 04/15/2012, 01:17 AM
Quote from: esteban on 04/15/2012, 12:55 AMNo, he's going to change it to "Pulse-Cacophony Modulation" in the next update.
The screen is only 43 characters across, so... no.
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: esteban on 04/15/2012, 02:58 AM
Quote from: ccovell on 04/15/2012, 01:17 AM
Quote from: esteban on 04/15/2012, 12:55 AMNo, he's going to change it to "Pulse-Cacophony Modulation" in the next update.
The screen is only 43 characters across, so... no.
Oh! I can fix that. :pcgs:

Now, 42% more characters: "Pulsatingly-Cacophonous Modulationism"

This will give you ~5 spare characters on the screen.
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: grahf on 04/16/2012, 08:02 AM
Yay, I actually came up with a name people liked :D

I'm really looking forward to gameofyou's low-cost flash card project to hit production, so I can play around with this awesome tool on real hardware. First Squirrel 3 comes out, then this. Looks like a PCE audio revival in 2012 :D
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: ccovell on 04/23/2012, 07:02 AM
Hmm... so no questions or comments about the program itself, eh?  Hmm....    :-k

Anyway, as I was playing around with PCMgine, I found some sound settings that I liked, so here are some Mednafen 0.8.D save states for some of them:

https://www.chrismcovell.com/data/WavTool_Mednafen_States.zip

Quote from: text filePut the *.nc0 - *.nc6 files in Mednafen's "mcs" folder.
Then launch the waveform tool (PCMgine) beta version in Mednafen * 0.8.D *.
Pressing 0-6 inside Mednafen will choose a save slot. 
Then press F7 to load the saved state.


Example 0: "Echo" ADSR example.  Good for echoey digital-sounding beeps.  Play around with the attackand fade levels for different effects.

Example 1: Voice with vibrato.  LFO is on WF 2, a sine wave, to give a simple vibrato effect.
Note: when LFO is on, Channel 1's volume (L/R) should be set to 0, otherwise nasty sounds WILL leak out of the channel on actual hardware!

Example 2: SID-style square wave pulsewidth cycling (via WF cycle).

Example 3: "Growling man".  WF cycling using Bloody Wolf's "voice" waveforms, plus LFO is on.
Mednafen has a bug, apparently.  It doesn't save the full audio state, so when you load this one, change Channel 0's frequency right away to correct it.  Play with the frequency anyway.  :-D

Example 4: Simple 2-channel phasing.

Example 5: Deep, Low-frequency 3-channel growling-rumbling-phasing. In stereo. :-D

Example 6: Detuning Ch.0 by using the LFO.  Makes a chord with Ch.2 while the player is on.
Sounds a lot like Mappy & Metro-Cross' WSG instruments.  :-D
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: spenoza on 04/23/2012, 11:46 AM
For those of us not using that Mednafen revision, could you post some screen shots so we can recreate your results visually?
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: grahf on 04/23/2012, 09:34 PM
Man, I really gotta set up an emulator on my PC. I really want to play with this on real hardware though.
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: ccovell on 04/23/2012, 11:52 PM
Quote from: guest on 04/23/2012, 11:46 AMFor those of us not using that Mednafen revision, could you post some screen shots so we can recreate your results visually?
Or, you could petition the Mednafen authors not to force save states to work only with a particular version of the emulator, with only a single version of a game ROM, with an exact CRC, on a Thursday, and only in leap years...

That's terrible programming.  When doing ROM hacking, game translation, graphics hacking, or even PCE programming, making one small change invalidates all your savestates.  How dumb.  That means, say you're working on a translation, you're deep into the game, notice a typo, and fix it.  How are you supposed to get back to that spot again quickly?  By using a different emulator, naturally.
 :x  :evil:  [-(  ](*,)  etc.

But anyway, back to your question, simply posting one screen doesn't help with all the settings.  Each RAM WF and ADSR WF has particular contents alluded to in my post, so savestates make it a bit easier than posting lots of screenshots.

If you have the ability to, just download Med. 0.8.D from their homepage.  Or wait 1 day or 2 since I'm back at work and can't do any file uploading anyway...
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: Mednafen on 04/30/2012, 09:23 PM
0.8.x setting: dfmd5
0.9.x setting: filesys.fname_sav (https://mednafen.github.io/documentation/mednafen.html#filesys.fname_sav) and filesys.fname_state (https://mednafen.github.io/documentation/mednafen.html#filesys.fname_state)
Title: Re: WYSIWYG Wave Sound Generation Tool
Post by: esteban on 05/05/2012, 06:33 AM
Quote from: Mednafen on 04/30/2012, 09:23 PM0.8.x setting: dfmd5
0.9.x setting: filesys.fname_sav (https://mednafen.github.io/documentation/mednafen.html#filesys.fname_sav) and filesys.fname_state (https://mednafen.github.io/documentation/mednafen.html#filesys.fname_state)
Such an elegant, concise reply :pcgs:.