Spectrum Filter Registry Format

Discussions for GoldWave plug-in development
Post Reply
mh
Posts: 133
Joined: Thu Aug 10, 2006 6:20 pm

Spectrum Filter Registry Format

Post by mh »

I'm writing something that generates Spectrum Filter settings for use in GW, and rather than having to type the values it generates in by hand, I'd like to be able to write them directly to the registry so that GW can automatically have them available. What I'm hoping Chris can elaborate on is the format used for storing Spectrum Filter settings in the registry (even just the struct definition(s) would be more than good enough). If it's not possible, that's fair, but it would be good to have. :wink:
GoldWave Inc.
Site Admin
Posts: 4372
Joined: Wed Mar 10, 2004 6:43 pm
Location: St. John's, NL
Contact:

Re: Spectrum Filter Registry Format

Post by GoldWave Inc. »

The presets are stored in the "HKEY_CURRENT_USER\Software\GoldWave\GoldWave\Presets\Effect\GoldWave*\Spectrum Filter" branch. The structure looks something like this:

Code: Select all

dword	 Version
dword    Points
double   x[0], y[0], x[1], y[1], ...x[Points-1], y[Points-1]
dword    FFTSize
dword    Overlap
double   Scale;
Note that the structure could change in an update. Also note that storing invalid or inappropriate coordinates or values could crash the program, so use at your own risk.

Chris
mh
Posts: 133
Joined: Thu Aug 10, 2006 6:20 pm

Post by mh »

Got it, cheers! :D
Post Reply