# Adding color to a spectrogram and making it round

**URL:** https://discourse.processing.org/t/adding-color-to-a-spectrogram-and-making-it-round/26138
**Category:** Libraries
**Tags:** homework
**Created:** [December 11, 2020, 1:33pm UTC](https://discourse.processing.org/t/adding-color-to-a-spectrogram-and-making-it-round/26138 "2020-12-11T13:33:21Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [June 28, 2021, 12:59pm UTC](https://discourse.processing.org/t/adding-color-to-a-spectrogram-and-making-it-round/26138/12 "2021-06-28T12:59:40Z")

</div>

Hello,

Welcome to the community!

> [@nilog](#):
>
> pls share code so i can also have look thx

I will not be sharing the code I wrote other than what is in the posted topics.

I wrote these from scratch each time I was asked about it by adding a few lines of code to the existing sound examples.

See this topic also:

> [@Drawing a spectogram 2D (or 3D) from a recorded audio](https://discourse.processing.org/t/drawing-a-spectogram-2d-or-3d-from-a-recorded-audio/25708/20):
>
> Hello, I was able to add a few lines of code to the Processing sound library examples and do this: Upper left is the FFT plot of amplitude (y) vs frequency (x) with color added to amplitudes for each frequency. Lower left is time (y) vs frequency (x) with color added to amplitudes for each frequency. Right side is frequency (radius) vs time (angle) with a rotating sweep of the same data from lower left plot. Time was updated each frame. I am posting this to demonstrate that…

Try doing it on your own… it is much more rewarding.

Please read the guidelines:

- [Processing FAQ - Frequently asked questions](https://discourse.processing.org/faq)
- [p5.js Community Statement](https://p5js.org/community/)
- [Guidelines - Asking Questions](https://discourse.processing.org/t/guidelines-asking-questions/2147/4)
- [Guidelines - Answering Questions](https://discourse.processing.org/t/guidelines-answering-questions/2145/1)

`:)`

---

_[View the full topic](https://discourse.processing.org/t/adding-color-to-a-spectrogram-and-making-it-round/26138)._
