# What is FFT.analzye() range? I'm only getting tiny tiny values

**URL:** <https://discourse.processing.org/t/what-is-fft-analzye-range-im-only-getting-tiny-tiny-values/10827>\
**Category:** Libraries\
**Created:** [May 2, 2019, 6:09am UTC](https://discourse.processing.org/t/what-is-fft-analzye-range-im-only-getting-tiny-tiny-values/10827 "2019-05-02T06:09:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DerekCresswell](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/derekcresswell/32/4868_2.png) [@DerekCresswell](https://discourse.processing.org/u/DerekCresswell)\
**Post date:** [May 2, 2019, 6:09am UTC](https://discourse.processing.org/t/what-is-fft-analzye-range-im-only-getting-tiny-tiny-values/10827/1 "2019-05-02T06:09:13Z")

</div>

I’ve tried putting in different songs and my values are coming out usually about “0.00XXXe-6” or just tiny. The largest I’ve gotten is “8”. I’ve tried mapping my values but only guessing on the range they either come out at the max or min.

What’s up?

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [May 2, 2019, 6:33am UTC](https://discourse.processing.org/t/what-is-fft-analzye-range-im-only-getting-tiny-tiny-values/10827/2 "2019-05-02T06:33:50Z")

</div>

hi,  
first it might be a good idea to tell us what you play with: like

> i try Processing Sound lib ( or Processing Minim lib?)

> test example  
> / File / Examples / Sound / Analysis / FFTSpectrum

if you look there a ranging factor is used

> int scale = 5;

and nearly can fill the canvas height 360

* * *

but i know that is no answer to the question?

> how high can a sinus amplitude be

---

<div class="post-metadata">

**Author:** ![DerekCresswell](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/derekcresswell/32/4868_2.png) [@DerekCresswell](https://discourse.processing.org/u/DerekCresswell)\
**Post date:** [May 6, 2019, 7:15am UTC](https://discourse.processing.org/t/what-is-fft-analzye-range-im-only-getting-tiny-tiny-values/10827/3 "2019-05-06T07:15:50Z")

</div>

Hi, sorry for the delayed response. I am using Processing.Sound. I don’t know what you’re referring to with the ranging factor.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [May 6, 2019, 7:42am UTC](https://discourse.processing.org/t/what-is-fft-analzye-range-im-only-getting-tiny-tiny-values/10827/4 "2019-05-06T07:42:52Z")

</div>

as you not posted your code i could only play with, what i have, the above mentioned  
example for the processing sound lib.

> / File / Examples / Sound / Analysis / FFTSpectrum

or ( only little bit different )

> **[FFT / Libraries](https://processing.org/reference/libraries/sound/FFT.html)**
>
> This is a Fast Fourier Transform (FFT) analyzer. It calculates the normalized power spectrum of an audio stream the moment it is queried with the analyze() method.

why you not open / run it?  
you will find the

```auto
int scale = 5;

```

* * *

> my values are coming out usually about “0.00XXXe-6” or just tiny.

well, you know what FFT is?  
if that frequency is not in the original song ( or not needed as harmonic  
to simulate a signal  
what is not in phase with the sample array )  
it has to be small???

* * *

also that sin amplitude will vary with the internal amplification of the signal ( but NOT with the PC audio VOL setting )

---

<div class="post-metadata">

**Author:** ![SplotyCode](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@SplotyCode](https://discourse.processing.org/u/SplotyCode)\
**Post date:** [November 26, 2019, 10:05pm UTC](https://discourse.processing.org/t/what-is-fft-analzye-range-im-only-getting-tiny-tiny-values/10827/5 "2019-11-26T22:05:31Z")

</div>

Does this mean that it can range from 0 to 5? I tried it my self and the highest value i could get was 2.1! I mean in your example it said the values are normalized but normalized to what?
