shithub: sox

Download patch

ref: 672834a9c1e5ee8c02ae4614cd6989b62426f684
parent: c28e759b03dd2a3d74adecf9658775835c006aa0
author: robs <robs>
date: Mon Jun 30 17:13:35 EDT 2008

need a smidge more kaiser beta in some cases

--- a/src/spectrogram.c
+++ b/src/spectrogram.c
@@ -193,7 +193,7 @@
     case Window_Hamming: apply_hamming(w, n); break;
     case Window_Bartlett: apply_bartlett(w, n); break;
     case Window_Rectangular: break;
-    default: apply_kaiser(w, n, kaiser_beta(p->dB_range + 10.));
+    default: apply_kaiser(w, n, kaiser_beta(p->dB_range + 20.));
   }
   for (i = 0; i < p->dft_size; ++i) sum += p->window[i];
   for (i = 0; i < p->dft_size; ++i) p->window[i] *= 2 / sum