Skip to content

Commit

Permalink
Correct spellings in fft_helpers.cpp (LMMS#3645)
Browse files Browse the repository at this point in the history
* Correct spellings in fft_helpers.cpp

change bandwith to bandwidth

*  Correct spellings in fft_helpers.cpp

Changed bandwith to bandwidth
  • Loading branch information
PhysSong committed Jul 8, 2017
1 parent 3592d1b commit 1bb6b10
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/fft_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ int calc13octaveband31(float *absspec_buffer, float *subbands, int num_spec, flo
{
static const int onethirdoctavecenterfr[] = {20, 25, 31, 40, 50, 63, 80, 100, 125, 160, 200, 250, 315, 400, 500, 630, 800, 1000, 1250, 1600, 2000, 2500, 3150, 4000, 5000, 6300, 8000, 10000, 12500, 16000, 20000};
int i, j;
float f_min, f_max, frequency, bandwith;
float f_min, f_max, frequency, bandwidth;
int j_min, j_max=0;
float fpower;

Expand Down Expand Up @@ -189,13 +189,13 @@ static const int onethirdoctavecenterfr[] = {20, 25, 31, 40, 50, 63, 80, 100, 12
{
subbands[i]=0;

// calculate bandwith for subband
// calculate bandwidth for subband
frequency=onethirdoctavecenterfr[i];

bandwith=(pow(2, 1.0/3.0)-1)*frequency;
bandwidth=(pow(2, 1.0/3.0)-1)*frequency;

f_min=frequency-bandwith/2.0;
f_max=frequency+bandwith/2.0;
f_min=frequency-bandwidth/2.0;
f_max=frequency+bandwidth/2.0;

j_min=(int)(f_min/max_frequency*(float)num_spec);

Expand Down

0 comments on commit 1bb6b10

Please sign in to comment.