@@ -154,7 +154,7 @@ static void vfx_task(void *pvParameter)
154154 xEventGroupSetBits (user_event_group , VFX_FFT_IDLE_BIT );
155155 }
156156
157- vfx_compute_freq_lin (vfx_fft_output , fft_out , vfx .scale_factor * 4 , vfx_disp_height , 1 );
157+ vfx_compute_freq_lin (vfx_fft_output , fft_out , vfx .scale_factor , vfx_disp_height , 1 );
158158
159159 if (vfx .mode == VFX_MODE_IDX_SPECTRUM_R_N ) {
160160 color_h = 0 ;
@@ -253,7 +253,7 @@ static void vfx_task(void *pvParameter)
253253 xEventGroupSetBits (user_event_group , VFX_FFT_IDLE_BIT );
254254 }
255255
256- vfx_compute_freq_log (vfx_fft_output , fft_out , vfx .scale_factor * 2 , vfx_disp_height , 0 );
256+ vfx_compute_freq_log (vfx_fft_output , fft_out , vfx .scale_factor , vfx_disp_height / 2 , 0 );
257257
258258 if (vfx .mode == VFX_MODE_IDX_SPECTRUM_R_L ) {
259259 color_h = 0 ;
@@ -379,9 +379,9 @@ static void vfx_task(void *pvParameter)
379379 }
380380
381381 if (vfx .mode == VFX_MODE_IDX_SPECTRUM_M_N ) {
382- vfx_compute_freq_lin (vfx_fft_output , fft_out , vfx .scale_factor * 4 , vu_val_max , 0 );
382+ vfx_compute_freq_lin (vfx_fft_output , fft_out , vfx .scale_factor , vu_val_max , 0 );
383383 } else {
384- vfx_compute_freq_log (vfx_fft_output , fft_out , vfx .scale_factor * 4 , vu_val_max , 0 );
384+ vfx_compute_freq_log (vfx_fft_output , fft_out , vfx .scale_factor , vu_val_max , 0 );
385385 }
386386
387387 for (uint8_t i = vu_idx_min ; i <= vu_idx_max ; i ++ ) {
@@ -896,9 +896,9 @@ static void vfx_task(void *pvParameter)
896896 }
897897
898898 if (vfx .mode == VFX_MODE_IDX_FOUNTAIN_S_N || vfx .mode == VFX_MODE_IDX_FOUNTAIN_G_N ) {
899- vfx_compute_freq_lin (vfx_fft_output , fft_out , vfx .scale_factor * 4 , canvas_height , 1 );
899+ vfx_compute_freq_lin (vfx_fft_output , fft_out , vfx .scale_factor , canvas_height , 1 );
900900 } else {
901- vfx_compute_freq_log (vfx_fft_output , fft_out , vfx .scale_factor * 4 , canvas_height , 1 );
901+ vfx_compute_freq_log (vfx_fft_output , fft_out , vfx .scale_factor , canvas_height , 1 );
902902 }
903903
904904 if (vfx .mode == VFX_MODE_IDX_FOUNTAIN_S_N || vfx .mode == VFX_MODE_IDX_FOUNTAIN_S_L ) {
@@ -1013,9 +1013,9 @@ static void vfx_task(void *pvParameter)
10131013 }
10141014
10151015 if (vfx .mode == VFX_MODE_IDX_FOUNTAIN_H_N ) {
1016- vfx_compute_freq_lin (vfx_fft_output , fft_out , vfx .scale_factor * 4 , canvas_height , 1 );
1016+ vfx_compute_freq_lin (vfx_fft_output , fft_out , vfx .scale_factor , canvas_height , 1 );
10171017 } else {
1018- vfx_compute_freq_log (vfx_fft_output , fft_out , vfx .scale_factor * 4 , canvas_height , 1 );
1018+ vfx_compute_freq_log (vfx_fft_output , fft_out , vfx .scale_factor , canvas_height , 1 );
10191019 }
10201020
10211021 for (uint16_t i = 0 ; i < canvas_width ; i ++ ) {
0 commit comments