A Completely n00b Question

Discussions for GoldWave plug-in development
Post Reply
DarthCrap
Posts: 3
Joined: Fri Jun 16, 2006 3:34 pm

A Completely n00b Question

Post by DarthCrap »

Now, you will want to kill me for asking such a question, but here goes...
Also, this could be more of a maths than programming question...

I want to make a bars visulation, but different to the one supplied with goldwave.

However, i want to have the same frequency magnitudes as are on the goldwave visulation (32, 63, 126, 252, 504, 1k, 2k, 4k, 8k 16k).

Using the formula provided in the documentation, the magnitudes in the array go up in values of 21.5

How can i get the same magnitudes as the goldwave visluation?
GoldWave Inc.
Site Admin
Posts: 4375
Joined: Wed Mar 10, 2004 6:43 pm
Location: St. John's, NL
Contact:

Re: A Completely n00b Question

Post by GoldWave Inc. »

Each bar center frequency depends on the sampling rate and how the frequency data are grouped. The first bar center, 32Hz, is calculated from 21 + (21 / 2), which is about 32Hz. The next bar is 42 + (42 / 2) = 63. Actually those values probably should be rounded up given that the frequency is in 21.5Hz steps.

The magnitudes can be determined by interpolation, but GoldWave just uses peak values within a bar's frequency range.

Chris
Post Reply