Refactoring of sound analysis view model and fft function