Is it possible to perform p5js.sound FFT for the whole audio input without playing it back?

Hi all,

I am currently working on an audio plotting/visualizer project which takes in amplitude of the audio input and also FFT for more data, so that the resulting plot/image will be more variative.

As for amplitude, I can grab the amplitude of the whole input by modifying p5.sound.getPeaks(). However, as for FFT, it seems that it requires playback though… Does anyone have an idea to tackle this problem as I don’t want to play it back because I want to plot it at once into a static image instead of animation…

Thank You…

Possibly something with WebAudio and OfflineAudioContext?

Possibly also: