Hi there!

I'm trying to build a patch that calculates the FFT of a sound file. The linear spectrum is calculated and shown fine, but I'm having a problem with the logarithmic representation. I've tried two different approaches. The one is with the spectrum~.pd in the pd folder extra->adaptive->examples and the other one with Katja's log frequency mapping. None of these seemed to work for me and I can't figure out the problem in any of them. Could anyone give some advice?

I attached all the files needed.

katja's_log_sweep.pd
plot_spectrum_file_v2.pd
plot_spectrum_file_v1.pd
spectrum~.pd