# What i get, if i multiplier the spectrum with index?

**URL:** <https://qa.fmod.com/t/what-i-get-if-i-multiplier-the-spectrum-with-index/14878>\
**Category:** Unity\
**Created:** [July 23, 2019, 8:39pm UTC](https://qa.fmod.com/t/what-i-get-if-i-multiplier-the-spectrum-with-index/14878 "2019-07-23T20:39:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amnesiaaa](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@amnesiaaa](https://qa.fmod.com/u/amnesiaaa)\
**Post date:** [July 23, 2019, 8:39pm UTC](https://qa.fmod.com/t/what-i-get-if-i-multiplier-the-spectrum-with-index/14878/1 "2019-07-23T20:39:55Z")

</div>

Hey i have seen this on a tutorial

> ```
> spectrum = new float[(FftWindowSize / 2)];
> for (int i = 0; i < spectrumData.GetLength(0); i++)
> {
> for (int j = 0; j < spectrum.Length; j++)
> spectrum[j] += spectrumData[i][j] * (j + 1);
> }
> 
> ```

what i get, if i multiplier the spectrum with index (i + 1)?  
Can someone explane it me or send links of this topic?  
Cant find anything and want understand it ☹

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [July 30, 2019, 7:19am UTC](https://qa.fmod.com/t/what-i-get-if-i-multiplier-the-spectrum-with-index/14878/2 "2019-07-30T07:19:45Z")

</div>

In this case, the index of `i` is used for the current channel.

[https://fmod.com/resources/documentation-api?version=2.0&page=plugin-api-dsp.html#fmod\_dsp\_parameter\_fft](https://fmod.com/resources/documentation-api?version=2.0&page=plugin-api-dsp.html#fmod_dsp_parameter_fft)
