Unverified Commit ebad5e9b authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

demo code

parent 035f07c1
...@@ -351,12 +351,13 @@ int main(int argc, char **argv) { ...@@ -351,12 +351,13 @@ int main(int argc, char **argv) {
g[i] = sqrt((Ex[i]+1e-15)/(Ey[i]+1e-15)); g[i] = sqrt((Ex[i]+1e-15)/(Ey[i]+1e-15));
if (g[i] > 1) g[i] = 1; if (g[i] > 1) g[i] = 1;
} }
interp_band_gain(gf, g);
#if 1 #if 1
for (i=0;i<NB_BANDS;i++) printf("%f ", g[i]); for (i=0;i<NB_BANDS;i++) printf("%f ", g[i]);
for (i=0;i<NB_BANDS;i++) printf("%f ", Ln[i]); for (i=0;i<NB_BANDS;i++) printf("%f ", Ln[i]);
printf("%f\n", vad); printf("%f\n", vad);
#endif #endif
//for (i=0;i<NB_BANDS;i++) scanf("%f", &g[i]);
interp_band_gain(gf, g);
#if 1 #if 1
for (i=0;i<FREQ_SIZE;i++) { for (i=0;i<FREQ_SIZE;i++) {
Y[i].r *= gf[i]; Y[i].r *= gf[i];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment