Skip to content

Commit

Permalink
Fixed loud burst when trasitioning to silence. Change SNR influence t…
Browse files Browse the repository at this point in the history
…ranslation
  • Loading branch information
lucianodato committed Feb 14, 2017
1 parent e614409 commit 62134c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion denoise_gain.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void nonlinear_power_sustraction(float reduction_strenght,

for (k = 0; k <= fft_size_2 ; k++) {
if (noise_thresholds[k] > FLT_MIN){
if(spectrum[k] > FLT_MIN){
if(spectrum[k] > 0.f){
if(snr_influence > 0){
alpha = snr_influence + sqrtf(spectrum[k]/noise_thresholds[k]);
}else{
Expand Down
4 changes: 2 additions & 2 deletions nrepel.ttl.in
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@
lv2:index 3 ;
lv2:symbol "scaling" ;
lv2:name "SNR influence",
"Influencia del SNR"@es ;
"Influencia S/R"@es ;
lv2:minimum 0.0 ;
lv2:maximum 3.0 ;
lv2:default 1.0 ;
lv2:default 0.0 ;
lv2:portProperty pprop:logarithmic ;
], [
a lv2:ControlPort,
Expand Down
2 changes: 1 addition & 1 deletion spectral_processing.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void gain_application(float amount_of_reduction,
float noise_listen){

int k;
float reduction_coeff = from_dB(-1.f*sanitize_denormal(amount_of_reduction));
float reduction_coeff = from_dB(-1.f*amount_of_reduction);
float denoised_fft_buffer[fft_size];
float residual_spectrum[fft_size];
float tappering_filter[fft_size_2+1];
Expand Down

0 comments on commit 62134c1

Please sign in to comment.