File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -544,7 +544,7 @@ Options:\n\
544
544
545
545
// process: weigh signal to frequencies
546
546
for (n = 0 ; n < bands ;
547
- n ++ )k [n ] = pow (fc [n ],0.62 ) * ((float )height /(M * 2000 )) * 8 ;
547
+ n ++ )k [n ] = pow (fc [n ],0.62 ) * ((float )height /(M * 3000 )) * 8 ;
548
548
549
549
550
550
@@ -637,8 +637,9 @@ Options:\n\
637
637
// process [smoothing]
638
638
if (!scientificMode )
639
639
{
640
- for (o = 0 ; o < bands ; o ++ ) {
641
640
641
+ // process [smoothing]: falloff
642
+ for (o = 0 ; o < bands ; o ++ ) {
642
643
temp = f [o ];
643
644
644
645
if (temp < flast [o ]) {
@@ -667,10 +668,9 @@ Options:\n\
667
668
}
668
669
}
669
670
671
+ // process [smoothing]: integral
670
672
for (o = 0 ; o < bands ; o ++ ) {
671
-
672
- fmem [o ] += f [o ];
673
- fmem [o ] = fmem [o ] * 0.55 ;
673
+ fmem [o ] = fmem [o ] * 0.55 + f [o ];
674
674
f [o ] = fmem [o ];
675
675
676
676
if (f [o ] < 1 )f [o ] = 1 ;
You can’t perform that action at this time.
0 commit comments