I disagreeso you just can average that.
Did you try to put it all in an array or ArrayLIst and save that and analyze that?
I should always look the same. (not tested)
- void draw()
- {
- for(int i = 0; i < song.bufferSize() - 1; i++)
- {
- arrLeft [counter] = song.left.get(i) ;
- arrRight [counter] = song.right.get(i) ;
- counter ++;
- }
- }
because then the buffer size is not important anymore, so (analysis) time is not in the equation.
Since we add up all buffer states in one array.