@@ -37,11 +37,11 @@ namespace spectral {
3737 public:
3838 // / Returns a fast FFT size <= `size`
3939 static int fastSizeAbove (int size, int divisor=1 ) {
40- return MRFFT::fastSizeAbove (size/divisor)*divisor;
40+ return static_cast < int >( MRFFT::fastSizeAbove (size/divisor)*divisor) ;
4141 }
4242 // / Returns a fast FFT size >= `size`
4343 static int fastSizeBelow (int size, int divisor=1 ) {
44- return MRFFT::fastSizeBelow (1 + (size - 1 )/divisor)*divisor;
44+ return static_cast < int >( MRFFT::fastSizeBelow (1 + (size - 1 )/divisor)*divisor) ;
4545 }
4646
4747 WindowedFFT () {}
@@ -86,7 +86,7 @@ namespace spectral {
8686 return this ->fftWindow ;
8787 }
8888 int size () const {
89- return mrfft.size ();
89+ return static_cast < int >( mrfft.size () );
9090 }
9191
9292 // / Performs an FFT (with windowing)
@@ -112,7 +112,7 @@ namespace spectral {
112112 template <class Input , class Output >
113113 void ifft (Input &&input, Output &&output) {
114114 mrfft.ifft (input, timeBuffer);
115- int fftSize = mrfft.size ();
115+ int fftSize = static_cast < int >( mrfft.size () );
116116 Sample norm = 1 /(Sample)fftSize;
117117
118118 for (int i = 0 ; i < offsetSamples; ++i) {
@@ -247,8 +247,8 @@ namespace spectral {
247247 if (windowShape == Window::kaiser) {
248248 using Kaiser = ::signalsmith::windows::Kaiser;
249249 // / Roughly optimal Kaiser for STFT analysis (forced to perfect reconstruction)
250- auto kaiser = Kaiser::withBandwidth (_windowSize/double (_interval), true );
251- kaiser .fill (window, _windowSize);
250+ auto kaiserWindow = Kaiser::withBandwidth (_windowSize/double (_interval), true );
251+ kaiserWindow .fill (window, _windowSize);
252252 } else {
253253 using Confined = ::signalsmith::windows::ApproximateConfinedGaussian;
254254 auto confined = Confined::withBandwidth (_windowSize/double (_interval));
0 commit comments