Correct "Hanning window" to "Hann window"

Updated in user facing text and comments. Variable names left as is.
This commit is contained in:
Steve Daulton 2019-03-14 10:10:20 +00:00
parent 2991928437
commit 2673e28f4a
5 changed files with 8 additions and 8 deletions

View File

@ -343,7 +343,7 @@ const wxChar *WindowFuncName(int whichFunction)
case eWinFuncHamming:
return wxT("Hamming");
case eWinFuncHanning:
return wxT("Hanning");
return wxT("Hann");
case eWinFuncBlackman:
return wxT("Blackman");
case eWinFuncBlackmanHarris:
@ -404,7 +404,7 @@ void NewWindowFunc(int whichFunction, size_t NumSamplesIn, bool extraSample, flo
break;
case eWinFuncHanning:
{
// Hanning
// Hann
const double multiplier = 2 * M_PI / NumSamples;
static const double coeff0 = 0.5, coeff1 = -0.5;
for (int ii = 0; ii < NumSamples; ++ii)
@ -601,7 +601,7 @@ void DerivativeOfWindowFunc(int whichFunction, size_t NumSamples, bool extraSamp
break;
case eWinFuncHanning:
{
// Hanning
// Hann
const double multiplier = 2 * M_PI / NumSamples;
const double coeff1 = -0.5 * multiplier;
for (int ii = 0; ii < (int)NumSamples; ++ii)

View File

@ -28,7 +28,7 @@
Also allows the curve to be specified with a series of 'graphic EQ'
sliders.
The filter is applied using overlap/add of Hanning windows.
The filter is applied using overlap/add of Hann windows.
Clone of the FFT Filter effect, no longer part of Audacity.

View File

@ -29,7 +29,7 @@
but if it were, there would be a significant delay.
The gain controls are applied to the complex FFT of the signal,
and then the inverse FFT is applied. A Hanning window may be
and then the inverse FFT is applied. A Hann window may be
applied (depending on the advanced window types setting), and then
the output signal is then pieced together using overlap/add.

View File

@ -27,7 +27,7 @@
but if it were, there would be a significant delay.
The gain controls are applied to the complex FFT of the signal,
and then the inverse FFT is applied, followed by a Hanning window;
and then the inverse FFT is applied, followed by a Hann window;
the output signal is then pieced together using overlap/add of
half the window size.
@ -288,7 +288,7 @@ void EffectNoiseRemoval::Initialize()
mWindow.reinit(mWindowSize);
mOutOverlapBuffer.reinit(mWindowSize);
// Create a Hanning window function
// Create a Hann window function
for(size_t i=0; i<mWindowSize; i++)
mWindow[i] = 0.5 - 0.5 * cos((2.0*M_PI*i) / mWindowSize);

View File

@ -217,7 +217,7 @@ size_t EffectToneGen::ProcessBlock(float **WXUNUSED(inBlock), float **outBlock,
f = pre4divPI * sin(pre2PI * mPositionInCycles / mSampleRate);
for (k = 3; (k < 200) && (k * BlendedFrequency < mSampleRate / 2.0); k += 2)
{
//Hanning Window in freq domain
//Hann Window in freq domain
a = 1.0 + cos((pre2PI * k * BlendedFrequency) / mSampleRate);
//calc harmonic, apply window, scale to amplitude of fundamental
f += a * sin(pre2PI * mPositionInCycles / mSampleRate * k) / (b * k);