I'm trying to divide an audio sample into 16 equal "slices". I currently use the sum 1 / s. Using my row of 16 buttons (GUI) and printing to the console from left to right the result is: inf, 1, 0.5, 0.33, 0.2, ect. I'm trying to have something starting from 0 this being the beginning of the sample on the furthest left button until the 16th button plays the last even division of the audio? Would anyone understand the maths to this?
what is 1/s?
are you trying to divide it into 16 parts of equal TIME duration, or are you trying to split into some sort of frequency channels, like an FFT?