# Drawing a spectogram 2D (or 3D) from a recorded audio

**URL:** <https://discourse.processing.org/t/drawing-a-spectogram-2d-or-3d-from-a-recorded-audio/25708>\
**Category:** Libraries\
**Created:** [November 25, 2020, 5:59pm UTC](https://discourse.processing.org/t/drawing-a-spectogram-2d-or-3d-from-a-recorded-audio/25708 "2020-11-25T17:59:52Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [December 1, 2020, 12:46pm UTC](https://discourse.processing.org/t/drawing-a-spectogram-2d-or-3d-from-a-recorded-audio/25708/10 "2020-12-01T12:46:38Z")

</div>

Not sure if this what youre looking for

> [@Fft audio analysis to pimage](https://discourse.processing.org/t/fft-audio-analysis-to-pimage/18861):
>
> Just thought I would share this. Its a audio to fft image sketch. Not seen one in processing yet, but maybe I haven’t looked in the right place. May be interesting for some. This will be added to the current program I am making, and will be accompanied with filters and neural networks for analysis. More to come soon. import processing.sound.\*; SoundFile superliminal = null; Amplitude amp; FFT fft; AudioIn in; //to set volume Sound s; int bands = 512; float[] spectrum = new float[bands]; Arr…

One downside to my sketch is that it cannot produce an image without playing the audio, and the resolution of the image is inversly proportional to playback speed meaning playing the audio at original speed is required for the best resolution. Im unsure weather this is a limitation of the sound library or processing itself.

---

_[View the full topic](https://discourse.processing.org/t/drawing-a-spectogram-2d-or-3d-from-a-recorded-audio/25708)._
