Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Divide an array of floats into different chunks of values.

$
0
0
Hi there!

I have an array of 1024 floats. These are FFTwindow.Hamming getspectrumdata calculations.
Now i want to create 16 new floats, within each the sum of 64 floats from the array.
So array position 0-63 -> (0+1+2+3..etc) = newarrayfloat[0]
array position 64-127 -> (0+1+2+3..etc) = newarrayfloat[1] ...etc...

I can't get this to work. I mostly just want to know how to select a range from an array, cause I could do this with lots of if statements in a for loop, with < & > but that would be...

Divide an array of floats into different chunks of values.

Viewing all articles
Browse latest Browse all 1466670

Trending Articles