tuned autosens

master
karlstav 7 years ago
parent fccc5093bf
commit 94e3be6054
  1. 10
      cava.c

@ -642,7 +642,7 @@ as of 0.4.0 all options are specified in config file, see in '/home/username/.co
// process: weigh signal to frequencies height and EQ // process: weigh signal to frequencies height and EQ
for (n = 0; n < bars; n++) { for (n = 0; n < bars; n++) {
k[n] = pow(fc[n],0.85); k[n] = pow(fc[n],0.85);
k[n] *= (float)height / pow(2,32); k[n] *= (float)height / pow(2,33);
k[n] *= p.smooth[(int)floor(((double)n) * smh)]; k[n] *= p.smooth[(int)floor(((double)n) * smh)];
} }
@ -849,12 +849,12 @@ as of 0.4.0 all options are specified in config file, see in '/home/username/.co
for (o = 0; o < bars; o++) { for (o = 0; o < bars; o++) {
if (f[o] > height ) { if (f[o] > height ) {
senseLow = false; senseLow = false;
p.sens = p.sens * 0.985; p.sens = p.sens * 0.98;
break; break;
} }
if (senseLow && !silence) p.sens = p.sens * 1.01; if (senseLow && !silence) p.sens = p.sens * 1.005;
if (o == bars - 1) p.sens = p.sens * 1.002; }
} p.sens = p.sens * 1.001;
} }
// output: draw processed input // output: draw processed input

Loading…
Cancel
Save